@atlaspack/types-internal 2.17.0 → 2.19.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.
- package/CHANGELOG.md +22 -0
- package/lib/{index.d.ts → types/index.d.ts} +4 -2
- package/package.json +6 -5
- package/src/index.ts +5 -2
- /package/lib/{Cache.d.ts → types/Cache.d.ts} +0 -0
- /package/lib/{DependencySpecifier.d.ts → types/DependencySpecifier.d.ts} +0 -0
- /package/lib/{FileCreateInvalidation.d.ts → types/FileCreateInvalidation.d.ts} +0 -0
- /package/lib/{FilePath.d.ts → types/FilePath.d.ts} +0 -0
- /package/lib/{FileSystem.d.ts → types/FileSystem.d.ts} +0 -0
- /package/lib/{Glob.d.ts → types/Glob.d.ts} +0 -0
- /package/lib/{NapiWorkerPool.d.ts → types/NapiWorkerPool.d.ts} +0 -0
- /package/lib/{PackageManager.d.ts → types/PackageManager.d.ts} +0 -0
- /package/lib/{PackageName.d.ts → types/PackageName.d.ts} +0 -0
- /package/lib/{SemverRange.d.ts → types/SemverRange.d.ts} +0 -0
- /package/lib/{unsafe.d.ts → types/unsafe.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaspack/types-internal
|
|
2
2
|
|
|
3
|
+
## 2.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
|
|
12
|
+
- @atlaspack/feature-flags@2.22.0
|
|
13
|
+
|
|
14
|
+
## 2.18.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [#731](https://github.com/atlassian-labs/atlaspack/pull/731) [`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2) Thanks [@marcins](https://github.com/marcins)! - Implement "inline isolated" scripts
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
|
|
23
|
+
- @atlaspack/feature-flags@2.21.0
|
|
24
|
+
|
|
3
25
|
## 2.17.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -92,7 +92,7 @@ export interface Target {
|
|
|
92
92
|
readonly loc: SourceLocation | null | undefined;
|
|
93
93
|
}
|
|
94
94
|
/** In which environment the output should run (influces e.g. bundle loaders) */
|
|
95
|
-
export type EnvironmentContext = 'browser' | 'web-worker' | 'service-worker' | 'worklet' | 'node' | 'electron-main' | 'electron-renderer';
|
|
95
|
+
export type EnvironmentContext = 'browser' | 'web-worker' | 'service-worker' | 'worklet' | 'node' | 'electron-main' | 'electron-renderer' | 'tesseract';
|
|
96
96
|
/** The JS module format for the bundle output */
|
|
97
97
|
export type OutputFormat = 'esmodule' | 'commonjs' | 'global';
|
|
98
98
|
/**
|
|
@@ -189,6 +189,8 @@ export interface Environment {
|
|
|
189
189
|
isWorker(): boolean;
|
|
190
190
|
/** Whether <code>context</code> specifies a worklet context. */
|
|
191
191
|
isWorklet(): boolean;
|
|
192
|
+
/** Whether <code>context</code> specifies a tesseract context. */
|
|
193
|
+
isTesseract(): boolean;
|
|
192
194
|
/** Whether <code>context</code> specifies an isolated context (can't access other loaded ancestor bundles). */
|
|
193
195
|
isIsolated(): boolean;
|
|
194
196
|
matchesEngines(minVersions: VersionMap, defaultValue?: boolean): boolean;
|
|
@@ -581,7 +583,7 @@ export type ASTGenerator = {
|
|
|
581
583
|
type: string;
|
|
582
584
|
version: Semver;
|
|
583
585
|
};
|
|
584
|
-
export type BundleBehavior = 'inline' | 'isolated';
|
|
586
|
+
export type BundleBehavior = 'inline' | 'isolated' | 'inlineIsolated';
|
|
585
587
|
export type AtlaspackTransformOptions = {
|
|
586
588
|
filePath: FilePath;
|
|
587
589
|
code?: string;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/types-internal",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
|
-
"types": "./lib/index.d.ts",
|
|
7
|
+
"types": "./lib/types/index.d.ts",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/atlassian-labs/atlaspack.git"
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"check-ts": "tsc --emitDeclarationOnly --rootDir src"
|
|
16
|
+
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
17
|
+
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"@atlaspack/diagnostic": "2.14.2",
|
|
20
|
-
"@atlaspack/feature-flags": "2.
|
|
21
|
+
"@atlaspack/feature-flags": "2.22.0",
|
|
21
22
|
"@parcel/source-map": "^2.1.1",
|
|
22
23
|
"utility-types": "^3.10.0"
|
|
23
24
|
},
|
|
24
25
|
"type": "commonjs"
|
|
25
|
-
}
|
|
26
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -170,7 +170,8 @@ export type EnvironmentContext =
|
|
|
170
170
|
| 'worklet'
|
|
171
171
|
| 'node'
|
|
172
172
|
| 'electron-main'
|
|
173
|
-
| 'electron-renderer'
|
|
173
|
+
| 'electron-renderer'
|
|
174
|
+
| 'tesseract';
|
|
174
175
|
|
|
175
176
|
/** The JS module format for the bundle output */
|
|
176
177
|
export type OutputFormat = 'esmodule' | 'commonjs' | 'global';
|
|
@@ -291,6 +292,8 @@ export interface Environment {
|
|
|
291
292
|
isWorker(): boolean;
|
|
292
293
|
/** Whether <code>context</code> specifies a worklet context. */
|
|
293
294
|
isWorklet(): boolean;
|
|
295
|
+
/** Whether <code>context</code> specifies a tesseract context. */
|
|
296
|
+
isTesseract(): boolean;
|
|
294
297
|
/** Whether <code>context</code> specifies an isolated context (can't access other loaded ancestor bundles). */
|
|
295
298
|
isIsolated(): boolean;
|
|
296
299
|
matchesEngines(minVersions: VersionMap, defaultValue?: boolean): boolean;
|
|
@@ -749,7 +752,7 @@ export type ASTGenerator = {
|
|
|
749
752
|
version: Semver;
|
|
750
753
|
};
|
|
751
754
|
|
|
752
|
-
export type BundleBehavior = 'inline' | 'isolated';
|
|
755
|
+
export type BundleBehavior = 'inline' | 'isolated' | 'inlineIsolated';
|
|
753
756
|
|
|
754
757
|
export type AtlaspackTransformOptions = {
|
|
755
758
|
filePath: FilePath;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|