@atlaspack/types-internal 2.14.1-dev.11 → 2.14.1-dev.123

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 CHANGED
@@ -1,5 +1,59 @@
1
1
  # @atlaspack/types-internal
2
2
 
3
+ ## 2.14.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`f4da1e1`](https://github.com/atlassian-labs/atlaspack/commit/f4da1e120e73eeb5e8b8927f05e88f04d6148c7b)]:
8
+ - @atlaspack/feature-flags@2.16.0
9
+
10
+ ## 2.14.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b)]:
15
+ - @atlaspack/feature-flags@2.15.1
16
+
17
+ ## 2.14.5
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [[`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929)]:
22
+ - @atlaspack/feature-flags@2.15.0
23
+
24
+ ## 2.14.4
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [[`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09)]:
29
+ - @atlaspack/feature-flags@2.14.4
30
+
31
+ ## 2.14.3
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [[`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7)]:
36
+ - @atlaspack/feature-flags@2.14.3
37
+
38
+ ## 2.14.2
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`9b85d3e`](https://github.com/atlassian-labs/atlaspack/commit/9b85d3e645b10bd027eed2304afc970a5ba40062), [`17b9579`](https://github.com/atlassian-labs/atlaspack/commit/17b9579484eced0ed8f23e2aba6d23b3c7238c39), [`8f4e6c1`](https://github.com/atlassian-labs/atlaspack/commit/8f4e6c1b0e7c1fd48624afda48c1dcc599f1460f)]:
43
+ - @atlaspack/feature-flags@2.14.2
44
+
45
+ ## 2.14.1
46
+
47
+ ### Patch Changes
48
+
49
+ - [#420](https://github.com/atlassian-labs/atlaspack/pull/420) [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b) Thanks [@JakeLane](https://github.com/JakeLane)! - Support async script runtime in conditional bundling
50
+
51
+ - [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
52
+ This has hopefully been fixed, so this change will force those packages to re-release.
53
+ - Updated dependencies [[`4aab060`](https://github.com/atlassian-labs/atlaspack/commit/4aab0605c0d4ee8e0dcc3ffa1162eae5b360b677), [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b), [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b)]:
54
+ - @atlaspack/feature-flags@2.14.1
55
+ - @atlaspack/diagnostic@2.14.1
56
+
3
57
  ## 2.14.0
4
58
 
5
59
  ### Minor Changes
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@atlaspack/unified/types-internal';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('@atlaspack/unified/types-internal');
package/index.js.flow ADDED
@@ -0,0 +1,3 @@
1
+ // @flow
2
+
3
+ export * from '@atlaspack/unified/src/types-internal/index.js';
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@atlaspack/types-internal",
3
- "version": "2.14.1-dev.11+633800dee",
3
+ "version": "2.14.1-dev.123+5a11f33c5",
4
4
  "license": "(MIT OR Apache-2.0)",
5
- "main": "src/index.js",
6
- "types": "lib/index.d.ts",
5
+ "main": "index.js",
6
+ "types": "index.d.ts",
7
+ "type": "commonjs",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "https://github.com/atlassian-labs/atlaspack.git"
@@ -11,16 +12,8 @@
11
12
  "publishConfig": {
12
13
  "access": "public"
13
14
  },
14
- "scripts": {
15
- "build-ts": "./scripts/build-ts.sh",
16
- "check-ts": "tsc --noEmit lib/index.d.ts"
17
- },
18
15
  "dependencies": {
19
- "@atlaspack/diagnostic": "2.14.1-dev.11+633800dee",
20
- "@atlaspack/feature-flags": "2.14.1-dev.11+633800dee",
21
- "@parcel/source-map": "^2.1.1",
22
- "utility-types": "^3.10.0"
16
+ "@atlaspack/unified": "2.14.2-dev.3834+5a11f33c5"
23
17
  },
24
- "type": "commonjs",
25
- "gitHead": "633800dee24b76fed158966a802c0ea5dcab65d5"
18
+ "gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
26
19
  }
package/lib/Cache.d.ts DELETED
@@ -1,25 +0,0 @@
1
- import type { Readable } from "stream";
2
- export interface Cache {
3
- ensure(): Promise<void>;
4
- has(key: string): Promise<boolean>;
5
- get<T>(key: string): Promise<T | null | undefined>;
6
- set(key: string, value: unknown): Promise<void>;
7
- getStream(key: string): Readable;
8
- setStream(key: string, stream: Readable): Promise<void>;
9
- getBlob(key: string): Promise<Buffer>;
10
- setBlob(key: string, contents: Buffer | string): Promise<void>;
11
- hasLargeBlob(key: string): Promise<boolean>;
12
- getLargeBlob(key: string): Promise<Buffer>;
13
- setLargeBlob(key: string, contents: Buffer | string, options?: {
14
- signal?: AbortSignal;
15
- }): Promise<void>;
16
- deleteLargeBlob(key: string): Promise<void>;
17
- getBuffer(key: string): Promise<Buffer | null | undefined>;
18
-
19
- /**
20
- * In a multi-threaded environment, where there are potentially multiple Cache
21
- * instances writing to the cache, ensure that this instance has the latest view
22
- * of the changes that may have been written to the cache in other threads.
23
- */
24
- refresh(): void;
25
- }
@@ -1,2 +0,0 @@
1
- /** See Dependency */
2
- export type DependencySpecifier = string;
@@ -1,13 +0,0 @@
1
- import type { Glob } from "./Glob";
2
- import type { FilePath } from "./FilePath";
3
- export type GlobInvalidation = {
4
- glob: Glob;
5
- };
6
- export type FileInvalidation = {
7
- filePath: FilePath;
8
- };
9
- export type FileAboveInvalidation = {
10
- fileName: string;
11
- aboveFilePath: FilePath;
12
- };
13
- export type FileCreateInvalidation = FileInvalidation | GlobInvalidation | FileAboveInvalidation;
package/lib/FilePath.d.ts DELETED
@@ -1 +0,0 @@
1
- export type FilePath = string;
@@ -1,91 +0,0 @@
1
- import type { FilePath } from "./FilePath";
2
- import type { Readable, Writable } from "stream";
3
- import type { Event, Options as WatcherOptions, AsyncSubscription } from "@parcel/watcher";
4
- export type FileOptions = {
5
- mode?: number;
6
- };
7
- export type ReaddirOptions = {
8
- withFileTypes?: false;
9
- } | {
10
- withFileTypes: true;
11
- };
12
- export interface Stats {
13
- dev: number;
14
- ino: number;
15
- mode: number;
16
- nlink: number;
17
- uid: number;
18
- gid: number;
19
- rdev: number;
20
- size: number;
21
- blksize: number;
22
- blocks: number;
23
- atimeMs: number;
24
- mtimeMs: number;
25
- ctimeMs: number;
26
- birthtimeMs: number;
27
- atime: Date;
28
- mtime: Date;
29
- ctime: Date;
30
- birthtime: Date;
31
- isFile(): boolean;
32
- isDirectory(): boolean;
33
- isBlockDevice(): boolean;
34
- isCharacterDevice(): boolean;
35
- isSymbolicLink(): boolean;
36
- isFIFO(): boolean;
37
- isSocket(): boolean;
38
- }
39
- export type Encoding = "hex" | "utf8" | "utf-8" | "ascii" | "binary" | "base64" | "ucs2" | "ucs-2" | "utf16le" | "latin1";
40
- export interface FileSystem {
41
- readFile(filePath: FilePath): Promise<Buffer>;
42
- readFile(filePath: FilePath, encoding: Encoding): Promise<string>;
43
- readFileSync(filePath: FilePath): Buffer;
44
- readFileSync(filePath: FilePath, encoding: Encoding): string;
45
- writeFile(filePath: FilePath, contents: Buffer | string, options: FileOptions | null | undefined): Promise<void>;
46
- copyFile(source: FilePath, destination: FilePath, flags?: number): Promise<void>;
47
- stat(filePath: FilePath): Promise<Stats>;
48
- statSync(filePath: FilePath): Stats;
49
- readdir(path: FilePath, opts?: {
50
- withFileTypes?: false;
51
- }): Promise<FilePath[]>;
52
- readdir(path: FilePath, opts: {
53
- withFileTypes: true;
54
- }): Promise<Dirent[]>;
55
- readdirSync(path: FilePath, opts?: {
56
- withFileTypes?: false;
57
- }): FilePath[];
58
- readdirSync(path: FilePath, opts: {
59
- withFileTypes: true;
60
- }): Dirent[];
61
- symlink(target: FilePath, path: FilePath): Promise<void>;
62
- unlink(path: FilePath): Promise<void>;
63
- realpath(path: FilePath): Promise<FilePath>;
64
- realpathSync(path: FilePath): FilePath;
65
- exists(path: FilePath): Promise<boolean>;
66
- existsSync(path: FilePath): boolean;
67
- mkdirp(path: FilePath): Promise<void>;
68
- rimraf(path: FilePath): Promise<void>;
69
- ncp(source: FilePath, destination: FilePath): Promise<void>;
70
- createReadStream(path: FilePath, options?: FileOptions | null | undefined): Readable;
71
- createWriteStream(path: FilePath, options?: FileOptions | null | undefined): Writable;
72
- cwd(): FilePath;
73
- chdir(dir: FilePath): void;
74
- watch(dir: FilePath, fn: (err: Error | null | undefined, events: Array<Event>) => unknown, opts: WatcherOptions): Promise<AsyncSubscription>;
75
- getEventsSince(dir: FilePath, snapshot: FilePath, opts: WatcherOptions): Promise<Array<Event>>;
76
- writeSnapshot(dir: FilePath, snapshot: FilePath, opts: WatcherOptions): Promise<void>;
77
- findAncestorFile(fileNames: Array<string>, fromDir: FilePath, root: FilePath): FilePath | null | undefined;
78
- findNodeModule(moduleName: string, fromDir: FilePath): FilePath | null | undefined;
79
- findFirstFile(filePaths: Array<FilePath>): FilePath | null | undefined;
80
- }
81
- // https://nodejs.org/api/fs.html#fs_class_fs_dirent
82
- export interface Dirent {
83
- readonly name: string;
84
- isBlockDevice(): boolean;
85
- isCharacterDevice(): boolean;
86
- isDirectory(): boolean;
87
- isFIFO(): boolean;
88
- isFile(): boolean;
89
- isSocket(): boolean;
90
- isSymbolicLink(): boolean;
91
- }
package/lib/Glob.d.ts DELETED
@@ -1 +0,0 @@
1
- export type Glob = string;
@@ -1,5 +0,0 @@
1
- export type Transferable = {};
2
- export interface NapiWorkerPool {
3
- getWorkers(): Promise<Array<Transferable>>;
4
- shutdown(): void;
5
- }
@@ -1,50 +0,0 @@
1
- import type { FileCreateInvalidation, PackageJSON } from "./index";
2
- import type { SemverRange } from "./SemverRange";
3
- import type { DependencySpecifier } from "./DependencySpecifier";
4
- import type { FileSystem } from "./FileSystem";
5
- import type { FilePath } from "./FilePath";
6
- export type PackageManagerResolveResult = {
7
- resolved: FilePath | DependencySpecifier;
8
- pkg?: PackageJSON | null | undefined;
9
- invalidateOnFileCreate: Array<FileCreateInvalidation>;
10
- invalidateOnFileChange: Set<FilePath>;
11
- type: number;
12
- };
13
- export type InstallOptions = {
14
- installPeers?: boolean;
15
- saveDev?: boolean;
16
- packageInstaller?: PackageInstaller | null | undefined;
17
- };
18
- export type InstallerOptions = {
19
- modules: Array<ModuleRequest>;
20
- fs: FileSystem;
21
- cwd: FilePath;
22
- packagePath?: FilePath | null | undefined;
23
- saveDev?: boolean;
24
- };
25
- export interface PackageInstaller {
26
- install(opts: InstallerOptions): Promise<void>;
27
- }
28
- export type Invalidations = {
29
- invalidateOnFileCreate: Array<FileCreateInvalidation>;
30
- invalidateOnFileChange: Set<FilePath>;
31
- invalidateOnStartup: boolean;
32
- };
33
- export interface PackageManager {
34
- require(id: DependencySpecifier, from: FilePath, arg2: {
35
- range?: SemverRange | null | undefined;
36
- shouldAutoInstall?: boolean;
37
- saveDev?: boolean;
38
- } | null | undefined): Promise<any>;
39
- resolve(id: DependencySpecifier, from: FilePath, arg2: {
40
- range?: SemverRange | null | undefined;
41
- shouldAutoInstall?: boolean;
42
- saveDev?: boolean;
43
- } | null | undefined): Promise<PackageManagerResolveResult>;
44
- getInvalidations(id: DependencySpecifier, from: FilePath): Invalidations;
45
- invalidate(id: DependencySpecifier, from: FilePath): void;
46
- }
47
- export type ModuleRequest = {
48
- readonly name: string;
49
- readonly range: SemverRange | null | undefined;
50
- };
@@ -1 +0,0 @@
1
- export type PackageName = string;
@@ -1 +0,0 @@
1
- export type SemverRange = string;