@atlaspack/runtime-js 2.17.0 → 2.18.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.md +22 -0
- package/lib/JSRuntime.js +1 -1
- package/package.json +8 -7
- package/src/JSRuntime.ts +1 -1
- /package/lib/{JSRuntime.d.ts → types/JSRuntime.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaspack/runtime-js
|
|
2
2
|
|
|
3
|
+
## 2.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`f6b3f22`](https://github.com/atlassian-labs/atlaspack/commit/f6b3f2276c7e417580b49c4879563aab51f156b1)]:
|
|
8
|
+
- @atlaspack/feature-flags@2.23.0
|
|
9
|
+
- @atlaspack/utils@2.18.2
|
|
10
|
+
- @atlaspack/plugin@2.14.25
|
|
11
|
+
|
|
12
|
+
## 2.18.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#732](https://github.com/atlassian-labs/atlaspack/pull/732) [`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45) Thanks [@vykimnguyen](https://github.com/vykimnguyen)! - add tesseract context
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
|
|
21
|
+
- @atlaspack/feature-flags@2.22.0
|
|
22
|
+
- @atlaspack/utils@2.18.1
|
|
23
|
+
- @atlaspack/plugin@2.14.24
|
|
24
|
+
|
|
3
25
|
## 2.17.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/lib/JSRuntime.js
CHANGED
|
@@ -77,7 +77,7 @@ const LOADERS = {
|
|
|
77
77
|
};
|
|
78
78
|
function getLoaders(ctx) {
|
|
79
79
|
// @ts-expect-error TS2322
|
|
80
|
-
if (ctx.isWorker()) return LOADERS.worker;
|
|
80
|
+
if (ctx.isWorker() || ctx.isTesseract()) return LOADERS.worker;
|
|
81
81
|
if (ctx.isBrowser()) return LOADERS.browser;
|
|
82
82
|
// @ts-expect-error TS2322
|
|
83
83
|
if (ctx.isNode()) return LOADERS.node;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/runtime-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,20 +11,21 @@
|
|
|
11
11
|
},
|
|
12
12
|
"main": "./lib/JSRuntime.js",
|
|
13
13
|
"source": "./src/JSRuntime.ts",
|
|
14
|
-
"types": "./lib/JSRuntime.d.ts",
|
|
14
|
+
"types": "./lib/types/JSRuntime.d.ts",
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@atlaspack/diagnostic": "2.14.2",
|
|
20
20
|
"@atlaspack/domain-sharding": "2.14.2",
|
|
21
|
-
"@atlaspack/feature-flags": "2.
|
|
22
|
-
"@atlaspack/plugin": "2.14.
|
|
23
|
-
"@atlaspack/utils": "2.18.
|
|
21
|
+
"@atlaspack/feature-flags": "2.23.0",
|
|
22
|
+
"@atlaspack/plugin": "2.14.25",
|
|
23
|
+
"@atlaspack/utils": "2.18.2",
|
|
24
24
|
"nullthrows": "^1.1.1"
|
|
25
25
|
},
|
|
26
26
|
"type": "commonjs",
|
|
27
27
|
"scripts": {
|
|
28
|
-
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
|
28
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
29
|
+
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
29
30
|
}
|
|
30
|
-
}
|
|
31
|
+
}
|
package/src/JSRuntime.ts
CHANGED
|
@@ -59,7 +59,7 @@ function getLoaders(ctx: Environment):
|
|
|
59
59
|
| null
|
|
60
60
|
| undefined {
|
|
61
61
|
// @ts-expect-error TS2322
|
|
62
|
-
if (ctx.isWorker()) return LOADERS.worker;
|
|
62
|
+
if (ctx.isWorker() || ctx.isTesseract()) return LOADERS.worker;
|
|
63
63
|
if (ctx.isBrowser()) return LOADERS.browser;
|
|
64
64
|
// @ts-expect-error TS2322
|
|
65
65
|
if (ctx.isNode()) return LOADERS.node;
|
|
File without changes
|