Skip to content

Commit b3928d6

Browse files
authored
Merge pull request #639 from dahlia/fix/fresh2
Restore Fresh 2 compatibility in Fedify
2 parents 144ce05 + 4054642 commit b3928d6

32 files changed

Lines changed: 418 additions & 272 deletions

.github/actions/setup-deno/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ runs:
66
steps:
77
- uses: denoland/setup-deno@v2
88
with:
9-
deno-version: 2.7.6 # Keep in sync with mise.toml
9+
deno-version: 2.7.7 # Keep in sync with mise.toml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.pnpm-store/
44
.vocab-codegen.lock/
55
dist/
6+
dist-tests/
67
node_modules/
78
package-lock.json
89
repomix-output.xml

CHANGES.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,32 @@ Version 2.0.7
88

99
To be released.
1010

11+
### @fedify/fedify
12+
13+
- Switched Fedify's source-based JSON-LD loading to the new
14+
`@fedify/vocab-runtime/jsonld` subpath so generated vocabulary code and
15+
Linked Data signature support no longer have to evaluate `jsonld` through
16+
a CommonJS-sensitive package root in Fresh 2, Deno, and other ESM-first
17+
runtimes. Fresh 2 development mode has been verified on Deno 2.7.7
18+
after an upstream Deno 2.7.6 dev server regression was fixed.
19+
[[#621], [#639]]
20+
21+
[#621]: https://github.com/fedify-dev/fedify/issues/621
22+
[#639]: https://github.com/fedify-dev/fedify/pull/639
23+
24+
### @fedify/vocab-runtime
25+
26+
- Fixed multibase public key handling to stop relying on the deprecated
27+
CommonJS-only `multicodec` package. This removes the Vite SSR crash that
28+
prevented Fresh 2 applications from importing `@fedify/fedify` with
29+
`TypeError: varint.encode is not a function`. Fresh 2 no longer needs a
30+
Vite externalization workaround for Fedify. [[#621], [#639]]
31+
32+
- Added the new `@fedify/vocab-runtime/jsonld` subpath export so generated
33+
vocabulary code and other Fedify runtime code can share a JSR-safe wrapper
34+
around `jsonld`'s ESM entrypoint instead of depending on fragile relative
35+
shims or the package-root import path. [[#621], [#639]]
36+
1137
### @fedify/init
1238

1339
- Revived removed `fedify init` options. [[#632], [#638] by ChanHaeng Lee]

0 commit comments

Comments
 (0)