diff --git a/.changeset/focused-svelte-subscriptions.md b/.changeset/focused-svelte-subscriptions.md deleted file mode 100644 index e7a3696..0000000 --- a/.changeset/focused-svelte-subscriptions.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@codebelt/classy-store': patch ---- - -Fix Svelte readable-store subscriptions to deliver mutations synchronously, -including mutations made by the initial callback. Prevent callbacks after -unsubscription and clean up if the initial callback throws. Ordinary core -subscriptions remain batched. Add regressions for Svelte 5 input editing, -computed values, list updates, and component cleanup. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a541f2e..819e299 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,12 @@ jobs: # Packed-consumer typechecks resolve the package's generated declarations. - run: bun run build - run: bun run typecheck + - name: Use Ubuntu archive mirror for browser dependencies + run: | + # Avoid slow Azure mirror downloads on hosted runners. + if [ -f /etc/apt/apt-mirrors.txt ]; then + sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|https://archive.ubuntu.com/ubuntu|g' /etc/apt/apt-mirrors.txt + fi - run: bunx playwright install --with-deps chromium firefox webkit working-directory: packages/classy-store - run: bun run test:browser diff --git a/.github/workflows/react-next.yml b/.github/workflows/react-next.yml index 6552a40..7b71110 100644 --- a/.github/workflows/react-next.yml +++ b/.github/workflows/react-next.yml @@ -22,6 +22,12 @@ jobs: with: bun-version: '1.4.3' - run: bun install --frozen-lockfile + - name: Use Ubuntu archive mirror for browser dependencies + run: | + # Avoid slow Azure mirror downloads on hosted runners. + if [ -f /etc/apt/apt-mirrors.txt ]; then + sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu|https://archive.ubuntu.com/ubuntu|g' /etc/apt/apt-mirrors.txt + fi - run: bunx playwright install --with-deps chromium working-directory: packages/classy-store - name: Packed production Next.js consumer (Compiler ${{ matrix.compiler }}) diff --git a/packages/classy-store/CHANGELOG.md b/packages/classy-store/CHANGELOG.md index 5356f21..050d514 100644 --- a/packages/classy-store/CHANGELOG.md +++ b/packages/classy-store/CHANGELOG.md @@ -1,5 +1,15 @@ # @codebelt/classy-store +## 0.8.1 + +### Patch Changes + +- [#36](https://github.com/codeBelt/classy-store/pull/36) [`4d4e800`](https://github.com/codeBelt/classy-store/commit/4d4e80006483fa104f0cb934f8f00e122220f540) Thanks [@codeBelt](https://github.com/codeBelt)! - Fix Svelte readable-store subscriptions to deliver mutations synchronously, + including mutations made by the initial callback. Prevent callbacks after + unsubscription and clean up if the initial callback throws. Ordinary core + subscriptions remain batched. Add regressions for Svelte 5 input editing, + computed values, list updates, and component cleanup. + ## 0.8.0 ### Minor Changes diff --git a/packages/classy-store/package.json b/packages/classy-store/package.json index 15bdc02..807245e 100644 --- a/packages/classy-store/package.json +++ b/packages/classy-store/package.json @@ -1,6 +1,6 @@ { "name": "@codebelt/classy-store", - "version": "0.8.0", + "version": "0.8.1", "description": "Class-based reactive state management — ES6 Proxy + immutable snapshots", "repository": { "type": "git",