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
14 changes: 0 additions & 14 deletions .changeset/fix-create-effex-templates.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/fix-hydrate-outer-scope.md

This file was deleted.

8 changes: 8 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# docs

## 0.0.30

### Patch Changes

- Updated dependencies [49af20d]
- @effex/dom@1.4.6
- @effex/router@1.3.7

## 0.0.29

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.29",
"version": "0.0.30",
"private": true,
"type": "module",
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions packages/create-effex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# create-effex

## 1.1.2

### Patch Changes

- 49af20d: Fix broken client entry templates.
- **SSG template** (`client.ts`): was calling `hydrate(App(), root)` with no
layers, even though the App uses `Outlet` and `Link` which require
`NavigationContext`. Hydration bailed as soon as either was resolved.
Now passes `Platform.makeClientLayer(router)` via `options.layers`.
- **SPA template** (`main.ts`): passed `{ layers: ... }` as a third arg to
`mount`, which doesn't accept options — the arg was silently dropped
and the returned `Effect` was never run, so nothing mounted at all. Now
uses `runApp(mount(...), { layer: ... })`, the documented pattern.

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-effex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-effex",
"version": "1.1.1",
"version": "1.1.2",
"description": "Create a new Effex application",
"type": "module",
"license": "MIT",
Expand Down
17 changes: 17 additions & 0 deletions packages/dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @effex/dom

## 1.4.6

### Patch Changes

- 49af20d: fix(hydrate): build `options.layers` in the outer program scope

Previously `hydrate` used `Effect.provide(element, elementLayers)`, which
internally wraps the effect in a fresh scope that closes as soon as the
effect completes. Since element functions return synchronously after
building the DOM, this tore down every scoped resource — Navigation's
popstate listener, `SubscriptionRef` PubSub subscribers, cache entries —
before the user could interact. Browser back/forward, reactive updates,
and anything relying on `Effect.addFinalizer` silently no-op'd.

Fixed by building the merged layers as a `Context` in hydrate's outer
program scope (kept alive by `Effect.never`) before providing.

## 1.4.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effex/dom",
"version": "1.4.5",
"version": "1.4.6",
"description": "DOM rendering for Effex - a reactive UI framework built on Effect.ts",
"type": "module",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @effex/router

## 1.3.7

### Patch Changes

- Updated dependencies [49af20d]
- @effex/dom@1.4.6

## 1.3.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@effex/router",
"version": "1.3.6",
"version": "1.3.7",
"description": "Router for Effex applications",
"type": "module",
"license": "MIT",
Expand Down
Loading