@rushstack/loader-raw-script 1.5.14 → 1.6.1

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/CHANGELOG.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "@rushstack/loader-raw-script",
3
3
  "entries": [
4
+ {
5
+ "version": "1.6.1",
6
+ "tag": "@rushstack/loader-raw-script_v1.6.1",
7
+ "date": "Fri, 20 Feb 2026 00:15:04 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644."
12
+ }
13
+ ],
14
+ "dependency": [
15
+ {
16
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.2.1`"
17
+ }
18
+ ]
19
+ }
20
+ },
21
+ {
22
+ "version": "1.6.0",
23
+ "tag": "@rushstack/loader-raw-script_v1.6.0",
24
+ "date": "Thu, 19 Feb 2026 00:04:53 GMT",
25
+ "comments": {
26
+ "minor": [
27
+ {
28
+ "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`."
29
+ }
30
+ ],
31
+ "dependency": [
32
+ {
33
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.2.0`"
34
+ }
35
+ ]
36
+ }
37
+ },
4
38
  {
5
39
  "version": "1.5.14",
6
40
  "tag": "@rushstack/loader-raw-script_v1.5.14",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @rushstack/loader-raw-script
2
2
 
3
- This log was last generated on Sat, 07 Feb 2026 01:13:26 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 20 Feb 2026 00:15:04 GMT and should not be manually modified.
4
+
5
+ ## 1.6.1
6
+ Fri, 20 Feb 2026 00:15:04 GMT
7
+
8
+ ### Patches
9
+
10
+ - Add `"node"` condition before `"import"` in the `"exports"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `"import"`. Fixes https://github.com/microsoft/rushstack/issues/5644.
11
+
12
+ ## 1.6.0
13
+ Thu, 19 Feb 2026 00:04:53 GMT
14
+
15
+ ### Minor changes
16
+
17
+ - Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `"exports"` field in `package.json`.
4
18
 
5
19
  ## 1.5.14
6
20
  Sat, 07 Feb 2026 01:13:26 GMT
@@ -0,0 +1,16 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2
+ // See LICENSE in the project root for license information.
3
+ import { EOL } from 'node:os';
4
+ const loaderFn = (content) => {
5
+ content = content.replace(/\\/g, '\\\\');
6
+ content = content.replace(/'/g, "\\'");
7
+ content = content.replace(/\n/g, '\\n');
8
+ content = content.replace(/\r/g, '\\r');
9
+ const lines = [
10
+ '(function (global) {',
11
+ ` eval('${content}');`,
12
+ '}.call(exports, (function() { return this; }())))'
13
+ ];
14
+ return lines.join(EOL);
15
+ };
16
+ //# sourceMappingURL=RawScriptLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RawScriptLoader.js","sourceRoot":"","sources":["../src/RawScriptLoader.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,2DAA2D;AAE3D,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAE9B,MAAM,QAAQ,GAAgC,CAAC,OAAe,EAAE,EAAE;IAChE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAExC,MAAM,KAAK,GAAa;QACtB,sBAAsB;QACtB,WAAW,OAAO,KAAK;QACvB,mDAAmD;KACpD,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport { EOL } from 'node:os';\n\nconst loaderFn: (content: string) => string = (content: string) => {\n content = content.replace(/\\\\/g, '\\\\\\\\');\n content = content.replace(/'/g, \"\\\\'\");\n content = content.replace(/\\n/g, '\\\\n');\n content = content.replace(/\\r/g, '\\\\r');\n\n const lines: string[] = [\n '(function (global) {',\n ` eval('${content}');`,\n '}.call(exports, (function() { return this; }())))'\n ];\n\n return lines.join(EOL);\n};\n\nexport = loaderFn;\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2
+ // See LICENSE in the project root for license information.
3
+ import * as RawScriptLoader from './RawScriptLoader';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,2DAA2D;AAE3D,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport * as RawScriptLoader from './RawScriptLoader';\n\nexport = RawScriptLoader;\n"]}
package/package.json CHANGED
@@ -1,9 +1,32 @@
1
1
  {
2
2
  "name": "@rushstack/loader-raw-script",
3
- "version": "1.5.14",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
- "main": "lib/index.js",
6
- "typings": "lib/index.d.ts",
5
+ "main": "./lib-commonjs/index.js",
6
+ "module": "./lib-esm/index.js",
7
+ "types": "./lib-dts/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib-dts/index.d.ts",
11
+ "node": "./lib-commonjs/index.js",
12
+ "import": "./lib-esm/index.js",
13
+ "require": "./lib-commonjs/index.js"
14
+ },
15
+ "./lib/*": {
16
+ "types": "./lib-dts/*.d.ts",
17
+ "node": "./lib-commonjs/*.js",
18
+ "import": "./lib-esm/*.js",
19
+ "require": "./lib-commonjs/*.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "typesVersions": {
24
+ "*": {
25
+ "lib/*": [
26
+ "lib-dts/*"
27
+ ]
28
+ }
29
+ },
7
30
  "license": "MIT",
8
31
  "repository": {
9
32
  "type": "git",
@@ -15,9 +38,10 @@
15
38
  },
16
39
  "devDependencies": {
17
40
  "eslint": "~9.37.0",
18
- "@rushstack/heft": "1.1.14",
19
- "local-node-rig": "1.0.0"
41
+ "local-node-rig": "1.0.0",
42
+ "@rushstack/heft": "1.2.1"
20
43
  },
44
+ "sideEffects": false,
21
45
  "scripts": {
22
46
  "build": "heft build --clean",
23
47
  "_phase:build": "heft run --only build -- --clean",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes