Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/json-safe-layer-keys.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/layer-cancelled-error.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/serial-onload-error.md

This file was deleted.

38 changes: 20 additions & 18 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions packages/alpine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @stainless-code/alpine-layers

## 0.2.3

### Patch Changes

- [#30](https://github.com/stainless-code/layers/pull/30) [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `cancelAll` and `LayerCancelledError`: system teardown (parent-dismiss child drain, layer-group dispose, host disconnect) now **rejects** `open()` instead of resolving `undefined`. User `dismiss` / `dismissAll(response)` still complete with `R`. Narrow with `isLayerCancelledError`. Devtools: **Dismiss all** still calls `dismissAll` (resolves); **Force clear** calls `cancelAll` (rejects).

- Updated dependencies [[`de3bd7b`](https://github.com/stainless-code/layers/commit/de3bd7bfced94ce91606388c4cfe921782f949bc), [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd), [`323be82`](https://github.com/stainless-code/layers/commit/323be82c2a6a7fc575099021a4441e71fec29943)]:
- @stainless-code/layers@0.2.3

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/alpine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stainless-code/alpine-layers",
"version": "0.2.2",
"version": "0.2.3",
"description": "Alpine.js adapter for @stainless-code/layers — call a layer like an async function and await its response.",
"keywords": [
"alpine",
Expand Down
2 changes: 1 addition & 1 deletion packages/alpine/skills/alpine-layers/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords:
- typescript
metadata:
library: "@stainless-code/alpine-layers"
library_version: "0.2.2"
library_version: "0.2.3"
framework: "alpinejs"
sources:
- https://stainless-code.com/layers/adapters/alpine
Expand Down
9 changes: 9 additions & 0 deletions packages/angular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @stainless-code/angular-layers

## 0.2.3

### Patch Changes

- [#30](https://github.com/stainless-code/layers/pull/30) [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `cancelAll` and `LayerCancelledError`: system teardown (parent-dismiss child drain, layer-group dispose, host disconnect) now **rejects** `open()` instead of resolving `undefined`. User `dismiss` / `dismissAll(response)` still complete with `R`. Narrow with `isLayerCancelledError`. Devtools: **Dismiss all** still calls `dismissAll` (resolves); **Force clear** calls `cancelAll` (rejects).

- Updated dependencies [[`de3bd7b`](https://github.com/stainless-code/layers/commit/de3bd7bfced94ce91606388c4cfe921782f949bc), [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd), [`323be82`](https://github.com/stainless-code/layers/commit/323be82c2a6a7fc575099021a4441e71fec29943)]:
- @stainless-code/layers@0.2.3

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stainless-code/angular-layers",
"version": "0.2.2",
"version": "0.2.3",
"description": "Angular adapter for @stainless-code/layers — call a layer like an async function and await its response.",
"keywords": [
"angular",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/skills/angular-layers/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- typescript
metadata:
library: "@stainless-code/angular-layers"
library_version: "0.2.2"
library_version: "0.2.3"
framework: "angular"
sources:
- https://stainless-code.com/layers/adapters/angular
Expand Down
10 changes: 10 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @stainless-code/layers

## 0.2.3

### Patch Changes

- [#29](https://github.com/stainless-code/layers/pull/29) [`de3bd7b`](https://github.com/stainless-code/layers/commit/de3bd7bfced94ce91606388c4cfe921782f949bc) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Reject non-JSON-safe layer key segments with `LayerKeyError` from `hashKey` (before stringify). Previously `JSON.stringify` could collide `[undefined]` / `[null]` / `[NaN]` as `"[null]"`.

- [#30](https://github.com/stainless-code/layers/pull/30) [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `cancelAll` and `LayerCancelledError`: system teardown (parent-dismiss child drain, layer-group dispose, host disconnect) now **rejects** `open()` instead of resolving `undefined`. User `dismiss` / `dismissAll(response)` still complete with `R`. Narrow with `isLayerCancelledError`. Devtools: **Dismiss all** still calls `dismissAll` (resolves); **Force clear** calls `cancelAll` (rejects).

- [#27](https://github.com/stainless-code/layers/pull/27) [`323be82`](https://github.com/stainless-code/layers/commit/323be82c2a6a7fc575099021a4441e71fec29943) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Serial stacks: failed `loadFn` occupies the lane by default (`onLoadError: "block"`), fixing leapfrog where a later open could mount while an error layer stayed up. Opt into `onLoadError: "advance"` to remove the failed layer and drain the queue.

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stainless-code/layers",
"version": "0.2.2",
"version": "0.2.3",
"description": "Headless, UI-agnostic layer/stack manager for modal/dialog/drawer/popover/toast UI. Call a layer like an async function and await its response.",
"keywords": [
"dialog",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/skills/layers/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords:
- typescript
metadata:
library: "@stainless-code/layers"
library_version: "0.2.2"
library_version: "0.2.3"
framework: "framework-agnostic"
sources:
- https://stainless-code.com/layers/adapters/core
Expand Down
9 changes: 9 additions & 0 deletions packages/devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @stainless-code/layers-devtools

## 0.2.4

### Patch Changes

- [#30](https://github.com/stainless-code/layers/pull/30) [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `cancelAll` and `LayerCancelledError`: system teardown (parent-dismiss child drain, layer-group dispose, host disconnect) now **rejects** `open()` instead of resolving `undefined`. User `dismiss` / `dismissAll(response)` still complete with `R`. Narrow with `isLayerCancelledError`. Devtools: **Dismiss all** still calls `dismissAll` (resolves); **Force clear** calls `cancelAll` (rejects).

- Updated dependencies [[`de3bd7b`](https://github.com/stainless-code/layers/commit/de3bd7bfced94ce91606388c4cfe921782f949bc), [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd), [`323be82`](https://github.com/stainless-code/layers/commit/323be82c2a6a7fc575099021a4441e71fec29943)]:
- @stainless-code/layers@0.2.3

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stainless-code/layers-devtools",
"version": "0.2.3",
"version": "0.2.4",
"description": "TanStack Devtools panel for @stainless-code/layers — stack picker and layer state inspector.",
"keywords": [
"devtools",
Expand Down
9 changes: 9 additions & 0 deletions packages/lit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @stainless-code/lit-layers

## 0.2.3

### Patch Changes

- [#30](https://github.com/stainless-code/layers/pull/30) [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `cancelAll` and `LayerCancelledError`: system teardown (parent-dismiss child drain, layer-group dispose, host disconnect) now **rejects** `open()` instead of resolving `undefined`. User `dismiss` / `dismissAll(response)` still complete with `R`. Narrow with `isLayerCancelledError`. Devtools: **Dismiss all** still calls `dismissAll` (resolves); **Force clear** calls `cancelAll` (rejects).

- Updated dependencies [[`de3bd7b`](https://github.com/stainless-code/layers/commit/de3bd7bfced94ce91606388c4cfe921782f949bc), [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd), [`323be82`](https://github.com/stainless-code/layers/commit/323be82c2a6a7fc575099021a4441e71fec29943)]:
- @stainless-code/layers@0.2.3

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/lit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stainless-code/lit-layers",
"version": "0.2.2",
"version": "0.2.3",
"description": "Lit adapter for @stainless-code/layers — call a layer like an async function and await its response.",
"keywords": [
"dialog",
Expand Down
2 changes: 1 addition & 1 deletion packages/lit/skills/lit-layers/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ keywords:
- typescript
metadata:
library: "@stainless-code/lit-layers"
library_version: "0.2.2"
library_version: "0.2.3"
framework: "lit"
sources:
- https://stainless-code.com/layers/adapters/lit
Expand Down
9 changes: 9 additions & 0 deletions packages/preact/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @stainless-code/preact-layers

## 0.2.3

### Patch Changes

- [#30](https://github.com/stainless-code/layers/pull/30) [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - Add `cancelAll` and `LayerCancelledError`: system teardown (parent-dismiss child drain, layer-group dispose, host disconnect) now **rejects** `open()` instead of resolving `undefined`. User `dismiss` / `dismissAll(response)` still complete with `R`. Narrow with `isLayerCancelledError`. Devtools: **Dismiss all** still calls `dismissAll` (resolves); **Force clear** calls `cancelAll` (rejects).

- Updated dependencies [[`de3bd7b`](https://github.com/stainless-code/layers/commit/de3bd7bfced94ce91606388c4cfe921782f949bc), [`9d804c2`](https://github.com/stainless-code/layers/commit/9d804c20018d021ab6615b5b064801e6feff3edd), [`323be82`](https://github.com/stainless-code/layers/commit/323be82c2a6a7fc575099021a4441e71fec29943)]:
- @stainless-code/layers@0.2.3

## 0.2.2

### Patch Changes
Expand Down
Loading
Loading