@jsenv/core 40.8.0 → 40.8.2
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.
- package/dist/build/build.js +4 -0
- package/dist/build/jsenv_core_packages.js +4 -1
- package/dist/jsenv_core.js +3 -0
- package/dist/start_dev_server/jsenv_core_packages.js +4 -1
- package/dist/start_dev_server/start_dev_server.js +4 -0
- package/package.json +50 -50
- package/src/kitchen/kitchen.js +5 -1
- package/src/kitchen/url_graph/url_info_injections.js +3 -0
package/dist/build/build.js
CHANGED
|
@@ -2134,6 +2134,9 @@ const INJECTIONS = {
|
|
|
2134
2134
|
return { [injectionSymbol]: "global", value };
|
|
2135
2135
|
},
|
|
2136
2136
|
optional: (value) => {
|
|
2137
|
+
if (value && value[injectionSymbol] === "optional") {
|
|
2138
|
+
return value;
|
|
2139
|
+
}
|
|
2137
2140
|
return { [injectionSymbol]: "optional", value };
|
|
2138
2141
|
},
|
|
2139
2142
|
};
|
|
@@ -2949,6 +2952,7 @@ const createKitchen = ({
|
|
|
2949
2952
|
isSupportedOnCurrentClients: memoizeIsSupported(clientRuntimeCompat),
|
|
2950
2953
|
isSupportedOnFutureClients: memoizeIsSupported(runtimeCompat),
|
|
2951
2954
|
isPlaceholderInjection,
|
|
2955
|
+
INJECTIONS,
|
|
2952
2956
|
getPluginMeta: null,
|
|
2953
2957
|
sourcemaps,
|
|
2954
2958
|
outDirectoryUrl,
|
|
@@ -2517,7 +2517,10 @@ const comparePathnames = (leftPathame, rightPathname) => {
|
|
|
2517
2517
|
const rightPart = rightPartArray[i];
|
|
2518
2518
|
i++;
|
|
2519
2519
|
// local comparison comes first
|
|
2520
|
-
const comparison = leftPart.localeCompare(rightPart
|
|
2520
|
+
const comparison = leftPart.localeCompare(rightPart, undefined, {
|
|
2521
|
+
numeric: true,
|
|
2522
|
+
sensitivity: "base",
|
|
2523
|
+
});
|
|
2521
2524
|
if (comparison !== 0) {
|
|
2522
2525
|
return comparison;
|
|
2523
2526
|
}
|
package/dist/jsenv_core.js
CHANGED
|
@@ -1822,7 +1822,10 @@ const comparePathnames = (leftPathame, rightPathname) => {
|
|
|
1822
1822
|
const rightPart = rightPartArray[i];
|
|
1823
1823
|
i++;
|
|
1824
1824
|
// local comparison comes first
|
|
1825
|
-
const comparison = leftPart.localeCompare(rightPart
|
|
1825
|
+
const comparison = leftPart.localeCompare(rightPart, undefined, {
|
|
1826
|
+
numeric: true,
|
|
1827
|
+
sensitivity: "base",
|
|
1828
|
+
});
|
|
1826
1829
|
if (comparison !== 0) {
|
|
1827
1830
|
return comparison;
|
|
1828
1831
|
}
|
|
@@ -2174,6 +2174,9 @@ const INJECTIONS = {
|
|
|
2174
2174
|
return { [injectionSymbol]: "global", value };
|
|
2175
2175
|
},
|
|
2176
2176
|
optional: (value) => {
|
|
2177
|
+
if (value && value[injectionSymbol] === "optional") {
|
|
2178
|
+
return value;
|
|
2179
|
+
}
|
|
2177
2180
|
return { [injectionSymbol]: "optional", value };
|
|
2178
2181
|
},
|
|
2179
2182
|
};
|
|
@@ -2989,6 +2992,7 @@ const createKitchen = ({
|
|
|
2989
2992
|
isSupportedOnCurrentClients: memoizeIsSupported(clientRuntimeCompat),
|
|
2990
2993
|
isSupportedOnFutureClients: memoizeIsSupported(runtimeCompat),
|
|
2991
2994
|
isPlaceholderInjection,
|
|
2995
|
+
INJECTIONS,
|
|
2992
2996
|
getPluginMeta: null,
|
|
2993
2997
|
sourcemaps,
|
|
2994
2998
|
outDirectoryUrl,
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "40.8.
|
|
3
|
+
"version": "40.8.2",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "dmail",
|
|
8
|
-
"email": "dmaillard06@gmail.com"
|
|
9
|
-
},
|
|
10
5
|
"repository": {
|
|
11
6
|
"type": "git",
|
|
12
7
|
"url": "https://github.com/jsenv/core"
|
|
13
8
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"access": "public"
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "dmail",
|
|
12
|
+
"email": "dmaillard06@gmail.com"
|
|
19
13
|
},
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"./src/kitchen/client/inline_content.js",
|
|
16
|
+
"./dist/client/new_stylesheet/new_stylesheet.js",
|
|
17
|
+
"./dist/client/inline_content/inline_content.js",
|
|
18
|
+
"./dist/client/directory_listing/jsenv_core_node_modules.js"
|
|
19
|
+
],
|
|
20
20
|
"type": "module",
|
|
21
21
|
"imports": {},
|
|
22
22
|
"exports": {
|
|
@@ -33,11 +33,6 @@
|
|
|
33
33
|
"/dist/",
|
|
34
34
|
"/src/"
|
|
35
35
|
],
|
|
36
|
-
"volta": {
|
|
37
|
-
"node": "24.1.0",
|
|
38
|
-
"npm": "11.3.0"
|
|
39
|
-
},
|
|
40
|
-
"packageManager": "npm@11.3.0",
|
|
41
36
|
"workspaces": [
|
|
42
37
|
"./packages/backend/*",
|
|
43
38
|
"./packages/frontend/*",
|
|
@@ -48,52 +43,45 @@
|
|
|
48
43
|
"./packages/related/cli/*",
|
|
49
44
|
"./packages/tooling/*"
|
|
50
45
|
],
|
|
51
|
-
"sideEffects": [
|
|
52
|
-
"./src/kitchen/client/inline_content.js",
|
|
53
|
-
"./dist/client/new_stylesheet/new_stylesheet.js",
|
|
54
|
-
"./dist/client/inline_content/inline_content.js",
|
|
55
|
-
"./dist/client/directory_listing/jsenv_core_node_modules.js",
|
|
56
|
-
"./src/plugins/import_meta_css/client/import_meta_css.js",
|
|
57
|
-
"./dist/js/import_meta_css.js"
|
|
58
|
-
],
|
|
59
46
|
"scripts": {
|
|
60
|
-
"eslint": "npx eslint .",
|
|
61
|
-
"test": "node --conditions=dev:jsenv ./scripts/test/test.mjs",
|
|
62
|
-
"test:packages": "npm run test -- ./packages/",
|
|
63
47
|
"build": "node --conditions=dev:jsenv ./scripts/build/build.mjs",
|
|
48
|
+
"build:file_size": "node ./scripts/build/build_file_size.mjs --log",
|
|
64
49
|
"build:packages": "npm run build --workspaces --if-present --conditions=developement",
|
|
65
|
-
"
|
|
50
|
+
"database:install": "npx @jsenv/database install",
|
|
51
|
+
"database:manage": "node --conditions=dev:jsenv ./packages/backend/database/src/cli/manage.js",
|
|
52
|
+
"database:setup": "npm run database:setup --workspaces --if-present --conditions=dev:jsenv",
|
|
53
|
+
"database:start": "npx @jsenv/database start",
|
|
54
|
+
"database:stop": "npx @jsenv/database stop",
|
|
55
|
+
"dev": "node --watch --conditions=dev:jsenv ./scripts/dev/dev.mjs",
|
|
56
|
+
"dev:route-inspector": "node --watch --conditions=dev:jsenv ./packages/backend/server/tests/route_inspector/start_server.js",
|
|
57
|
+
"eslint": "npx eslint .",
|
|
58
|
+
"https:setup": "npx @jsenv/https-local setup",
|
|
59
|
+
"md:build": "node ./docs/build.js",
|
|
60
|
+
"monorepo:node_modules_clear": "npx @jsenv/filesystem clear **/node_modules/",
|
|
66
61
|
"monorepo:publish": "node ./scripts/monorepo/publish_packages.mjs",
|
|
62
|
+
"monorepo:sync_packages_versions": "node ./scripts/monorepo/sync_packages_versions.mjs",
|
|
67
63
|
"monorepo:upgrade_versions": "node ./scripts/monorepo/upgrade_external_versions.mjs",
|
|
68
|
-
"
|
|
69
|
-
"md:build": "node ./docs/build.js",
|
|
64
|
+
"oto:start": "npm run start -w oto",
|
|
70
65
|
"performances": "node --expose-gc ./scripts/performance/generate_performance_report.mjs --log --once",
|
|
71
|
-
"
|
|
66
|
+
"playwright:install": "npx playwright install-deps && npx playwright install",
|
|
67
|
+
"prepublishOnly": "npm run build",
|
|
72
68
|
"prettier": "prettier --write .",
|
|
73
|
-
"test
|
|
69
|
+
"test": "node --conditions=dev:jsenv ./scripts/test/test.mjs",
|
|
74
70
|
"test:ci": "CI=1 npm run test",
|
|
75
|
-
"test:packages:ci": "CI=1 npm run workspace:test",
|
|
76
71
|
"test:only_dev_server_errors": "node --conditions=dev:jsenv ./tests/dev_server/errors/dev_errors_snapshots.test.mjs",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"https:setup": "npx @jsenv/https-local setup",
|
|
81
|
-
"prepublishOnly": "npm run build",
|
|
82
|
-
"database:install": "npx @jsenv/database install",
|
|
83
|
-
"database:start": "npx @jsenv/database start",
|
|
84
|
-
"database:stop": "npx @jsenv/database stop",
|
|
85
|
-
"database:setup": "npx @jsenv/database setup",
|
|
86
|
-
"oto:start": "npm run start -w oto"
|
|
72
|
+
"test:packages": "npm run test -- ./packages/",
|
|
73
|
+
"test:packages:ci": "CI=1 npm run workspace:test",
|
|
74
|
+
"test:snapshot_clear": "npx @jsenv/filesystem clear **/tests/**/side_effects/"
|
|
87
75
|
},
|
|
88
76
|
"dependencies": {
|
|
89
77
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
90
|
-
"@jsenv/ast": "6.7.
|
|
91
|
-
"@jsenv/js-module-fallback": "1.4.
|
|
92
|
-
"@jsenv/plugin-bundling": "2.9.
|
|
78
|
+
"@jsenv/ast": "6.7.7",
|
|
79
|
+
"@jsenv/js-module-fallback": "1.4.19",
|
|
80
|
+
"@jsenv/plugin-bundling": "2.9.9",
|
|
93
81
|
"@jsenv/plugin-minification": "1.7.0",
|
|
94
|
-
"@jsenv/plugin-supervisor": "1.7.
|
|
95
|
-
"@jsenv/plugin-transpilation": "1.5.
|
|
96
|
-
"@jsenv/server": "16.
|
|
82
|
+
"@jsenv/plugin-supervisor": "1.7.4",
|
|
83
|
+
"@jsenv/plugin-transpilation": "1.5.51",
|
|
84
|
+
"@jsenv/server": "16.2.0",
|
|
97
85
|
"@jsenv/sourcemap": "1.3.9",
|
|
98
86
|
"react-table": "7.8.0"
|
|
99
87
|
},
|
|
@@ -139,7 +127,19 @@
|
|
|
139
127
|
"prettier": "3.5.3",
|
|
140
128
|
"prettier-plugin-embed": "0.5.0",
|
|
141
129
|
"prettier-plugin-organize-imports": "4.1.0",
|
|
130
|
+
"prettier-plugin-packagejson": "2.5.15",
|
|
142
131
|
"prettier-plugin-sql": "0.19.0",
|
|
143
132
|
"strip-ansi": "7.1.0"
|
|
133
|
+
},
|
|
134
|
+
"packageManager": "npm@11.3.0",
|
|
135
|
+
"engines": {
|
|
136
|
+
"node": ">=20.8.0"
|
|
137
|
+
},
|
|
138
|
+
"volta": {
|
|
139
|
+
"node": "24.1.0",
|
|
140
|
+
"npm": "11.3.0"
|
|
141
|
+
},
|
|
142
|
+
"publishConfig": {
|
|
143
|
+
"access": "public"
|
|
144
144
|
}
|
|
145
|
-
}
|
|
145
|
+
}
|
package/src/kitchen/kitchen.js
CHANGED
|
@@ -17,7 +17,10 @@ import {
|
|
|
17
17
|
determineSourcemapFileUrl,
|
|
18
18
|
} from "./out_directory_url.js";
|
|
19
19
|
import { createUrlGraph } from "./url_graph/url_graph.js";
|
|
20
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
INJECTIONS,
|
|
22
|
+
isPlaceholderInjection,
|
|
23
|
+
} from "./url_graph/url_info_injections.js";
|
|
21
24
|
import { createUrlInfoTransformer } from "./url_graph/url_info_transformations.js";
|
|
22
25
|
import { urlSpecifierEncoding } from "./url_graph/url_specifier_encoding.js";
|
|
23
26
|
|
|
@@ -104,6 +107,7 @@ export const createKitchen = ({
|
|
|
104
107
|
isSupportedOnCurrentClients: memoizeIsSupported(clientRuntimeCompat),
|
|
105
108
|
isSupportedOnFutureClients: memoizeIsSupported(runtimeCompat),
|
|
106
109
|
isPlaceholderInjection,
|
|
110
|
+
INJECTIONS,
|
|
107
111
|
getPluginMeta: null,
|
|
108
112
|
sourcemaps,
|
|
109
113
|
outDirectoryUrl,
|