Unverified Commit 72ae599e authored by Hong Minhee's avatar Hong Minhee
Browse files

Upgrade jsonld dependency to 9.0.0

This upgrade eliminates the rdf-canonize-native runtime dependency that
was causing build issues in bundler environments like Next.js, Nuxt, and
other webpack-based tools.

The rdf-canonize-native package is no longer maintained, and its
speculative require() was causing module resolution errors during builds.
Version 9.0.0 of jsonld uses rdf-canonize 5.0.0, which has completely
dropped native binding support in favor of the performant pure JavaScript
implementation.

This resolves compatibility issues when using Fedify in web frameworks,
particularly Nuxt projects where the native dependency was problematic.

Fixes: https://github.com/digitalbazaar/jsonld.js/issues/567
Related: https://github.com/digitalbazaar/rdf-canonize/pull/84
parent ee8ee94d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -74,7 +74,12 @@
        "codegen"
      ]
    },
    "install": "deno run --allow-read --allow-env --allow-run scripts/install.ts && pnpm install",
    "install": {
      "command": "deno run --allow-read --allow-env --allow-run scripts/install.ts && pnpm install",
      "dependencies": [
        "codegen"
      ]
    },
    "test": {
      "command": "deno test --check --doc --allow-all --unstable-kv --trace-leaks --parallel",
      "dependencies": [
+48 −255

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
    "fast-check": "npm:fast-check@^3.22.0",
    "fetch-mock": "npm:fetch-mock@^12.5.2",
    "json-canon": "npm:json-canon@^1.0.1",
    "jsonld": "npm:jsonld@^8.3.2",
    "jsonld": "npm:jsonld@^9.0.0",
    "multicodec": "npm:multicodec@^3.2.1",
    "pkijs": "npm:pkijs@^3.2.4",
    "structured-field-values": "npm:structured-field-values@^2.0.4",
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@
    "byte-encodings": "^1.0.11",
    "es-toolkit": "^1.39.5",
    "json-canon": "^1.0.1",
    "jsonld": "^8.3.2",
    "jsonld": "^9.0.0",
    "multicodec": "^3.2.1",
    "pkijs": "^3.2.4",
    "structured-field-values": "^2.0.4",
+33 −109

File changed.

Preview size limit exceeded, changes collapsed.