@modern-js/plugin-data-loader 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,10 +2,10 @@ import "node:module";
2
2
  import path from "path";
3
3
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
4
4
  import { dirname as __rspack_dirname } from "node:path";
5
- var generateClient_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
5
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
6
6
  const generateClient = ({ inline, action, routeId })=>{
7
7
  let requestCode = "";
8
- const requestCreatorPath = path.join(generateClient_dirname, './createRequest').replace('/cjs/cli/', '/esm/cli/').replace(/\\/g, '/');
8
+ const requestCreatorPath = path.join(__rspack_import_meta_dirname__, './createRequest').replace('/cjs/cli/', '/esm/cli/').replace(/\\/g, '/');
9
9
  const importCode = `
10
10
  import { createRequest, createActionRequest } from '${requestCreatorPath}';
11
11
  `;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.5.0",
18
+ "version": "3.6.0",
19
19
  "engines": {
20
20
  "node": ">=20"
21
21
  },
@@ -44,12 +44,12 @@
44
44
  "dependencies": {
45
45
  "@swc/helpers": "^0.5.17",
46
46
  "path-to-regexp": "^6.3.0",
47
- "@modern-js/runtime-utils": "3.5.0",
48
- "@modern-js/utils": "3.5.0"
47
+ "@modern-js/runtime-utils": "3.6.0",
48
+ "@modern-js/utils": "3.6.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@rsbuild/core": "2.1.0",
52
- "@rslib/core": "0.23.0",
52
+ "@rslib/core": "0.23.2",
53
53
  "@types/node": "^20",
54
54
  "@types/supertest": "^2.0.16",
55
55
  "memfs": "^3.5.3",
@@ -57,13 +57,13 @@
57
57
  "react-dom": "^19.2.7",
58
58
  "supertest": "^6.3.4",
59
59
  "typescript": "^5",
60
- "@modern-js/server-core": "3.5.0",
61
60
  "@modern-js/rslib": "2.68.10",
62
- "@modern-js/types": "3.5.0",
61
+ "@modern-js/server-core": "3.6.0",
62
+ "@modern-js/types": "3.6.0",
63
63
  "@scripts/rstest-config": "2.66.0"
64
64
  },
65
65
  "peerDependencies": {
66
- "react": ">=17.0.2"
66
+ "react": ">=18.0.0"
67
67
  },
68
68
  "sideEffects": false,
69
69
  "publishConfig": {