Skip to content

Commit

Permalink
fix(node): allow fetch override on runtime plugin (#2603)
Browse files Browse the repository at this point in the history
Co-authored-by: ScriptedAlchemy <zackaryjackson@bytedance.com>
Co-authored-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent 1776c74 commit 32f26af
Show file tree
Hide file tree
Showing 10 changed files with 551 additions and 798 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-impalas-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/sdk': patch
---

allow global fetch override for node
5 changes: 5 additions & 0 deletions .changeset/seven-moons-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/node': patch
---

allow fetch override on runtime plugin with globalThis.webpackChunkLoad
5 changes: 5 additions & 0 deletions .changeset/thick-cups-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/runtime': patch
---

fix fetch hook types on runtime plugin interfaces
5 changes: 5 additions & 0 deletions .changeset/warm-forks-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/node': minor
---

fetch hook supported in node runtime plugin
5 changes: 5 additions & 0 deletions .changeset/wild-pillows-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/sdk': patch
---

refactor node fetch functions to call fetch hook from runtime plugin
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"docs": "typedoc",
"lint": "nx run-many --target=lint",
"test": "nx run-many --target=test",
"build": "nx run-many --target=build --parallel=3 --projects=tag:type:pkg",
"build": "nx run-many --target=build --parallel=5 --projects=tag:type:pkg",
"build:pkg": "nx run-many --targets=build --projects=tag:type:pkg --skip-nx-cache",
"lint-fix": "nx format:write --uncommitted",
"trigger-release": "node -e 'import(\"open\").then(open => open.default(\"https://github.com/module-federation/core/actions/workflows/trigger-release.yml\"))'",
Expand Down Expand Up @@ -209,7 +209,7 @@
"ts-jest": "29.1.2",
"tslib": "2.6.2",
"tsup": "7.2.0",
"typescript": "5.3.3",
"typescript": "5.5.2",
"url-loader": "4.1.1",
"verdaccio": "5.29.2",
"vinyl-fs": "4.0.0",
Expand Down
Loading

0 comments on commit 32f26af

Please sign in to comment.