@jsenv/core 39.2.15 → 39.2.17

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/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # @jsenv/core
1
+ # @jsenv/core
2
+
2
3
  [![npm package](https://img.shields.io/npm/v/@jsenv/core.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/core)
3
4
 
4
5
  Jsenv is a suite of tools that can be used in projects involving JavaScript.
@@ -1286,7 +1286,7 @@ const createTaskLog = (
1286
1286
  fail: () => {},
1287
1287
  };
1288
1288
  }
1289
- if (animated && process.env.SNAPSHOTING_FUNCTION_SIDE_EFFECTS) {
1289
+ if (animated && process.env.CAPTURING_SIDE_EFFECTS) {
1290
1290
  animated = false;
1291
1291
  }
1292
1292
  const startMs = Date.now();
@@ -18865,13 +18865,12 @@ Add "${key}" in that file.
18865
18865
  --- suggestion b ---
18866
18866
  Fix eventual typo in "${key}"?
18867
18867
  --- suggestion c ---
18868
- Mark injection as optional using INJECTIONS.optional()
18869
-
18868
+ Mark injection as optional using INJECTIONS.optional():
18870
18869
  import { INJECTIONS } from "@jsenv/core";
18871
18870
 
18872
18871
  return {
18873
18872
  "${key}": INJECTIONS.optional(${JSON.stringify(value)}),
18874
- }`,
18873
+ };`,
18875
18874
  );
18876
18875
  }
18877
18876
  continue;
@@ -21858,7 +21857,9 @@ const build = async ({
21858
21857
  "buildDirectoryUrl",
21859
21858
  );
21860
21859
  if (outDirectoryUrl === undefined) {
21861
- if (!process.env.CI) {
21860
+ if (process.env.CAPTURING_SIDE_EFFECTS) {
21861
+ outDirectoryUrl = new URL("../.jsenv/", sourceDirectoryUrl);
21862
+ } else {
21862
21863
  const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
21863
21864
  if (packageDirectoryUrl) {
21864
21865
  outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
@@ -22722,7 +22723,9 @@ const startDevServer = async ({
22722
22723
  sourceDirectoryUrl,
22723
22724
  );
22724
22725
  if (outDirectoryUrl === undefined) {
22725
- if (!process.env.CI) {
22726
+ if (process.env.CAPTURING_SIDE_EFFECTS) {
22727
+ outDirectoryUrl = new URL("../.jsenv/", sourceDirectoryUrl);
22728
+ } else {
22726
22729
  const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
22727
22730
  if (packageDirectoryUrl) {
22728
22731
  outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "39.2.15",
3
+ "version": "39.2.17",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -67,37 +67,37 @@
67
67
  "dependencies": {
68
68
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
69
69
  "@jsenv/abort": "4.3.0",
70
- "@jsenv/ast": "6.2.12",
71
- "@jsenv/filesystem": "4.9.8",
72
- "@jsenv/humanize": "1.2.7",
70
+ "@jsenv/ast": "6.2.14",
71
+ "@jsenv/filesystem": "4.9.9",
72
+ "@jsenv/humanize": "1.2.8",
73
73
  "@jsenv/importmap": "1.2.1",
74
74
  "@jsenv/integrity": "0.0.2",
75
- "@jsenv/js-module-fallback": "1.3.33",
75
+ "@jsenv/js-module-fallback": "1.3.35",
76
76
  "@jsenv/node-esm-resolution": "1.0.2",
77
- "@jsenv/plugin-bundling": "2.7.4",
77
+ "@jsenv/plugin-bundling": "2.7.5",
78
78
  "@jsenv/plugin-minification": "1.5.5",
79
- "@jsenv/plugin-supervisor": "1.5.13",
80
- "@jsenv/plugin-transpilation": "1.4.17",
79
+ "@jsenv/plugin-supervisor": "1.5.15",
80
+ "@jsenv/plugin-transpilation": "1.4.19",
81
81
  "@jsenv/runtime-compat": "1.3.1",
82
- "@jsenv/server": "15.2.17",
83
- "@jsenv/sourcemap": "1.2.21",
82
+ "@jsenv/server": "15.2.18",
83
+ "@jsenv/sourcemap": "1.2.22",
84
84
  "@jsenv/url-meta": "8.5.0",
85
- "@jsenv/urls": "2.5.1",
85
+ "@jsenv/urls": "2.5.2",
86
86
  "@jsenv/utils": "2.1.2",
87
87
  "anchor-markdown-header": "0.7.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@babel/eslint-parser": "7.24.8",
90
+ "@babel/eslint-parser": "7.25.1",
91
91
  "@babel/plugin-syntax-import-attributes": "7.24.7",
92
92
  "@babel/plugin-syntax-optional-chaining-assign": "7.24.7",
93
93
  "@jsenv/assert": "./packages/independent/assert/",
94
94
  "@jsenv/cli": "./packages/related/cli/",
95
95
  "@jsenv/core": "./",
96
96
  "@jsenv/eslint-config": "./packages/independent/eslint-config/",
97
- "@jsenv/file-size-impact": "14.1.6",
97
+ "@jsenv/file-size-impact": "14.2.0",
98
98
  "@jsenv/https-local": "3.0.7",
99
- "@jsenv/monorepo": "0.0.5",
100
- "@jsenv/performance-impact": "4.2.1",
99
+ "@jsenv/monorepo": "0.0.6",
100
+ "@jsenv/performance-impact": "4.3.0",
101
101
  "@jsenv/plugin-as-js-classic": "./packages/related/plugin-as-js-classic/",
102
102
  "@jsenv/snapshot": "./packages/independent/snapshot/",
103
103
  "@jsenv/test": "./packages/related/test/",
@@ -110,7 +110,7 @@
110
110
  "eslint-plugin-import": "2.29.1",
111
111
  "eslint-plugin-react": "7.35.0",
112
112
  "eslint-plugin-regexp": "2.6.0",
113
- "marked": "13.0.2",
113
+ "marked": "13.0.3",
114
114
  "open": "10.1.0",
115
115
  "playwright": "1.45.3",
116
116
  "prettier": "3.3.3",
@@ -149,7 +149,9 @@ export const build = async ({
149
149
  "buildDirectoryUrl",
150
150
  );
151
151
  if (outDirectoryUrl === undefined) {
152
- if (!process.env.CI) {
152
+ if (process.env.CAPTURING_SIDE_EFFECTS) {
153
+ outDirectoryUrl = new URL("../.jsenv/", sourceDirectoryUrl);
154
+ } else {
153
155
  const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
154
156
  if (packageDirectoryUrl) {
155
157
  outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
@@ -105,7 +105,9 @@ export const startDevServer = async ({
105
105
  sourceDirectoryUrl,
106
106
  );
107
107
  if (outDirectoryUrl === undefined) {
108
- if (!process.env.CI) {
108
+ if (process.env.CAPTURING_SIDE_EFFECTS) {
109
+ outDirectoryUrl = new URL("../.jsenv/", sourceDirectoryUrl);
110
+ } else {
109
111
  const packageDirectoryUrl = lookupPackageDirectory(sourceDirectoryUrl);
110
112
  if (packageDirectoryUrl) {
111
113
  outDirectoryUrl = `${packageDirectoryUrl}.jsenv/`;
@@ -69,13 +69,12 @@ Add "${key}" in that file.
69
69
  --- suggestion b ---
70
70
  Fix eventual typo in "${key}"?
71
71
  --- suggestion c ---
72
- Mark injection as optional using INJECTIONS.optional()
73
-
72
+ Mark injection as optional using INJECTIONS.optional():
74
73
  import { INJECTIONS } from "@jsenv/core";
75
74
 
76
75
  return {
77
76
  "${key}": INJECTIONS.optional(${JSON.stringify(value)}),
78
- }`,
77
+ };`,
79
78
  );
80
79
  }
81
80
  continue;