@modern-js/server 3.0.0-alpha.2 → 3.0.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.
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import node_path from "node:path";
4
3
  import { createServerBase } from "@modern-js/server-core";
5
4
  import { createNodeServer, loadServerRuntimeConfig } from "@modern-js/server-core/node";
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
4
4
  import { dirname as __rspack_dirname } from "node:path";
5
5
  import { chalk, getPackageManager, logger, tryResolve } from "@modern-js/utils";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import minimatch from "minimatch";
4
3
  const defaultIgnores = [
5
4
  '**/coverage/**',
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import path from "path";
4
4
  import { chokidar, fs } from "@modern-js/utils";
5
5
  import { DependencyTree } from "./dependencyTree.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import crypto_0 from "crypto";
4
3
  import fs from "fs";
5
4
  class StatsCache {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { connectMid2HonoMid } from "@modern-js/server-core/node";
4
3
  import { API_DIR, SHARED_DIR } from "@modern-js/utils";
5
4
  import { getDevOptions, getMockMiddleware, initFileReader, onRepack, startWatcher } from "./helpers/index.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  const getDevOptions = (devOptions)=>{
4
3
  const defaultOptions = {
5
4
  https: false,
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { fileReader } from "@modern-js/runtime-utils/fileReader";
4
3
  const initFileReader = (compiler)=>{
5
4
  let isInit = false;
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import path from "path";
4
4
  import { AGGRED_DIR } from "@modern-js/server-core";
5
5
  import { SERVER_BUNDLE_DIRECTORY, SERVER_DIR, logger } from "@modern-js/utils";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import node_path from "node:path";
4
3
  import { AGGRED_DIR } from "@modern-js/server-core";
5
4
  import { connectMockMid2HonoMid } from "@modern-js/server-core/node";
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import { fileReader } from "@modern-js/runtime-utils/fileReader";
4
4
  const cleanSSRCache = (distDir)=>{
5
5
  Object.keys(require.cache).forEach((key)=>{
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createDebugger } from "@modern-js/utils";
4
3
  const debug = createDebugger('server');
5
4
  export { debug };
@@ -1,4 +1,3 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createDevServer } from "./createDevServer.mjs";
4
3
  export { createDevServer };
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.0.0-alpha.2",
18
+ "version": "3.0.0",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -38,20 +38,20 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@swc/helpers": "^0.5.17",
41
- "axios": "^1.13.2",
41
+ "axios": "^1.13.4",
42
42
  "connect-history-api-fallback": "^2.0.0",
43
43
  "http-compression": "1.0.6",
44
44
  "minimatch": "^3.1.2",
45
45
  "path-to-regexp": "^6.3.0",
46
46
  "ws": "^8.19.0",
47
- "@modern-js/runtime-utils": "3.0.0-alpha.2",
48
- "@modern-js/server-core": "3.0.0-alpha.2",
49
- "@modern-js/server-utils": "3.0.0-alpha.2",
50
- "@modern-js/types": "3.0.0-alpha.2",
51
- "@modern-js/utils": "3.0.0-alpha.2"
47
+ "@modern-js/server-core": "3.0.0",
48
+ "@modern-js/runtime-utils": "3.0.0",
49
+ "@modern-js/types": "3.0.0",
50
+ "@modern-js/utils": "3.0.0",
51
+ "@modern-js/server-utils": "3.0.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@rslib/core": "0.19.3",
54
+ "@rslib/core": "0.19.4",
55
55
  "@types/connect-history-api-fallback": "^1.5.4",
56
56
  "@types/minimatch": "^3.0.5",
57
57
  "@types/node": "^20",
@@ -61,9 +61,9 @@
61
61
  "tsconfig-paths": "4.2.0",
62
62
  "typescript": "^5",
63
63
  "websocket": "^1.0.35",
64
- "@modern-js/builder": "3.0.0-alpha.2",
65
- "@modern-js/rslib": "2.68.10",
66
- "@scripts/rstest-config": "2.66.0"
64
+ "@scripts/rstest-config": "2.66.0",
65
+ "@modern-js/builder": "3.0.0",
66
+ "@modern-js/rslib": "2.68.10"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "devcert": "^1.2.2",