@atlaspack/plugin 2.14.5-canary.20 → 2.14.5-canary.200

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,181 @@
1
1
  # @atlaspack/plugin
2
2
 
3
+ ## 2.14.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
8
+
9
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
10
+ - @atlaspack/types-internal@2.20.1
11
+
12
+ ## 2.14.30
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`eedcbc4`](https://github.com/atlassian-labs/atlaspack/commit/eedcbc408fc1e86a2a8e25f1a41c57146d8529e1), [`f6532d7`](https://github.com/atlassian-labs/atlaspack/commit/f6532d7a4f7f007bd4e5e36af04dd466f0b9f572)]:
17
+ - @atlaspack/types-internal@2.20.0
18
+
19
+ ## 2.14.29
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @atlaspack/types-internal@2.19.5
25
+
26
+ ## 2.14.28
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies []:
31
+ - @atlaspack/types-internal@2.19.4
32
+
33
+ ## 2.14.27
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies []:
38
+ - @atlaspack/types-internal@2.19.3
39
+
40
+ ## 2.14.26
41
+
42
+ ### Patch Changes
43
+
44
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
45
+
46
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd)]:
47
+ - @atlaspack/types-internal@2.19.2
48
+
49
+ ## 2.14.25
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies []:
54
+ - @atlaspack/types-internal@2.19.1
55
+
56
+ ## 2.14.24
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [[`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45)]:
61
+ - @atlaspack/types-internal@2.19.0
62
+
63
+ ## 2.14.23
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies []:
68
+ - @atlaspack/types@2.15.13
69
+
70
+ ## 2.14.22
71
+
72
+ ### Patch Changes
73
+
74
+ - [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
75
+
76
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94)]:
77
+ - @atlaspack/types@2.15.12
78
+
79
+ ## 2.14.21
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies []:
84
+ - @atlaspack/types@2.15.11
85
+
86
+ ## 2.14.20
87
+
88
+ ### Patch Changes
89
+
90
+ - [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
91
+
92
+ - Updated dependencies []:
93
+ - @atlaspack/types@2.15.10
94
+
95
+ ## 2.14.19
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies []:
100
+ - @atlaspack/types@2.15.9
101
+
102
+ ## 2.14.18
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies []:
107
+ - @atlaspack/types@2.15.8
108
+
109
+ ## 2.14.17
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies []:
114
+ - @atlaspack/types@2.15.7
115
+
116
+ ## 2.14.16
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies []:
121
+ - @atlaspack/types@2.15.6
122
+
123
+ ## 2.14.15
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies []:
128
+ - @atlaspack/types@2.15.5
129
+
130
+ ## 2.14.14
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies []:
135
+ - @atlaspack/types@2.15.4
136
+
137
+ ## 2.14.13
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies []:
142
+ - @atlaspack/types@2.15.3
143
+
144
+ ## 2.14.12
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies []:
149
+ - @atlaspack/types@2.15.2
150
+
151
+ ## 2.14.11
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies []:
156
+ - @atlaspack/types@2.15.1
157
+
158
+ ## 2.14.10
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [[`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196)]:
163
+ - @atlaspack/types@2.15.0
164
+
165
+ ## 2.14.9
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies []:
170
+ - @atlaspack/types@2.14.9
171
+
172
+ ## 2.14.8
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies []:
177
+ - @atlaspack/types@2.14.8
178
+
3
179
  ## 2.14.7
4
180
 
5
181
  ### Patch Changes
@@ -0,0 +1 @@
1
+ "use strict";
package/lib/PluginAPI.js CHANGED
@@ -9,70 +9,60 @@ exports.Validator = exports.Transformer = exports.Runtime = exports.Resolver = e
9
9
  const CONFIG = Symbol.for('parcel-plugin-config');
10
10
  class Transformer {
11
11
  constructor(opts) {
12
- // $FlowFixMe
13
12
  this[CONFIG] = opts;
14
13
  }
15
14
  }
16
15
  exports.Transformer = Transformer;
17
16
  class Resolver {
18
17
  constructor(opts) {
19
- // $FlowFixMe
20
18
  this[CONFIG] = opts;
21
19
  }
22
20
  }
23
21
  exports.Resolver = Resolver;
24
22
  class Bundler {
25
23
  constructor(opts) {
26
- // $FlowFixMe
27
24
  this[CONFIG] = opts;
28
25
  }
29
26
  }
30
27
  exports.Bundler = Bundler;
31
28
  class Namer {
32
29
  constructor(opts) {
33
- // $FlowFixMe
34
30
  this[CONFIG] = opts;
35
31
  }
36
32
  }
37
33
  exports.Namer = Namer;
38
34
  class Runtime {
39
35
  constructor(opts) {
40
- // $FlowFixMe
41
36
  this[CONFIG] = opts;
42
37
  }
43
38
  }
44
39
  exports.Runtime = Runtime;
45
40
  class Validator {
46
41
  constructor(opts) {
47
- // $FlowFixMe
48
42
  this[CONFIG] = opts;
49
43
  }
50
44
  }
51
45
  exports.Validator = Validator;
52
46
  class Packager {
53
47
  constructor(opts) {
54
- // $FlowFixMe
55
48
  this[CONFIG] = opts;
56
49
  }
57
50
  }
58
51
  exports.Packager = Packager;
59
52
  class Optimizer {
60
53
  constructor(opts) {
61
- // $FlowFixMe
62
54
  this[CONFIG] = opts;
63
55
  }
64
56
  }
65
57
  exports.Optimizer = Optimizer;
66
58
  class Compressor {
67
59
  constructor(opts) {
68
- // $FlowFixMe
69
60
  this[CONFIG] = opts;
70
61
  }
71
62
  }
72
63
  exports.Compressor = Compressor;
73
64
  class Reporter {
74
65
  constructor(opts) {
75
- // $FlowFixMe
76
66
  this[CONFIG] = opts;
77
67
  }
78
68
  }
@@ -0,0 +1,43 @@
1
+ import type { Transformer as TransformerOpts, Resolver as ResolverOpts, Bundler as BundlerOpts, Namer as NamerOpts, Runtime as RuntimeOpts, Packager as PackagerOpts, Optimizer as OptimizerOpts, Compressor as CompressorOpts, Reporter as ReporterOpts, Validator as ValidatorOpts } from '@atlaspack/types-internal';
2
+ declare const CONFIG: unique symbol;
3
+ export declare class Transformer<T = unknown> {
4
+ [CONFIG]: TransformerOpts<T>;
5
+ constructor(opts: TransformerOpts<T>);
6
+ }
7
+ export declare class Resolver<T = unknown> {
8
+ [CONFIG]: ResolverOpts<T>;
9
+ constructor(opts: ResolverOpts<T>);
10
+ }
11
+ export declare class Bundler<T = unknown> {
12
+ [CONFIG]: BundlerOpts<T>;
13
+ constructor(opts: BundlerOpts<T>);
14
+ }
15
+ export declare class Namer<T = unknown> {
16
+ [CONFIG]: NamerOpts<T>;
17
+ constructor(opts: NamerOpts<T>);
18
+ }
19
+ export declare class Runtime<T = unknown> {
20
+ [CONFIG]: RuntimeOpts<T>;
21
+ constructor(opts: RuntimeOpts<T>);
22
+ }
23
+ export declare class Validator {
24
+ [CONFIG]: ValidatorOpts;
25
+ constructor(opts: ValidatorOpts);
26
+ }
27
+ export declare class Packager<T = unknown, U = unknown> {
28
+ [CONFIG]: PackagerOpts<T, U>;
29
+ constructor(opts: PackagerOpts<T, U>);
30
+ }
31
+ export declare class Optimizer<T = unknown, U = unknown> {
32
+ [CONFIG]: OptimizerOpts<T, U>;
33
+ constructor(opts: OptimizerOpts<T, U>);
34
+ }
35
+ export declare class Compressor {
36
+ [CONFIG]: CompressorOpts;
37
+ constructor(opts: CompressorOpts);
38
+ }
39
+ export declare class Reporter {
40
+ [CONFIG]: ReporterOpts;
41
+ constructor(opts: ReporterOpts);
42
+ }
43
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/plugin",
3
- "version": "2.14.5-canary.20+30f60175b",
3
+ "version": "2.14.5-canary.200+10ee3fa5b",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -10,17 +10,18 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/atlassian-labs/atlaspack.git"
12
12
  },
13
- "main": "lib/PluginAPI.js",
14
- "source": "src/PluginAPI.js",
15
- "types": "src/PluginAPI.d.ts",
13
+ "main": "./lib/PluginAPI.js",
14
+ "source": "./src/PluginAPI.ts",
15
+ "types": "./lib/types/PluginAPI.d.ts",
16
16
  "engines": {
17
17
  "node": ">= 16.0.0"
18
18
  },
19
19
  "scripts": {
20
- "check-ts": "tsc --noEmit src/PluginAPI.d.ts"
20
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
21
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
21
22
  },
22
23
  "dependencies": {
23
- "@atlaspack/types": "2.14.5-canary.20+30f60175b"
24
+ "@atlaspack/types-internal": "2.14.1-canary.268+10ee3fa5b"
24
25
  },
25
- "gitHead": "30f60175ba4d272c5fc193973c63bc298584775b"
26
- }
26
+ "gitHead": "10ee3fa5b75a92acde8973673d9b3c5b6f3958e5"
27
+ }
@@ -31,7 +31,7 @@ export declare class Runtime<T> {
31
31
  constructor(opts: RuntimeOpts<T>);
32
32
  }
33
33
 
34
- export declare class Validator<T> {
34
+ export declare class Validator {
35
35
  constructor(opts: ValidatorOpts);
36
36
  }
37
37
 
@@ -1,5 +1,3 @@
1
- // @flow strict-local
2
-
3
1
  import type {
4
2
  Transformer as TransformerOpts,
5
3
  Resolver as ResolverOpts,
@@ -11,78 +9,88 @@ import type {
11
9
  Compressor as CompressorOpts,
12
10
  Reporter as ReporterOpts,
13
11
  Validator as ValidatorOpts,
14
- } from '@atlaspack/types';
12
+ } from '@atlaspack/types-internal';
15
13
 
16
14
  // This uses the `parcel-plugin-config` symbol so it's backwards compatible with
17
15
  // parcel plugins.
18
16
  const CONFIG = Symbol.for('parcel-plugin-config');
19
17
 
20
- export class Transformer {
21
- constructor<T>(opts: TransformerOpts<T>) {
22
- // $FlowFixMe
18
+ export class Transformer<T = unknown> {
19
+ [CONFIG]: TransformerOpts<T>;
20
+
21
+ constructor(opts: TransformerOpts<T>) {
23
22
  this[CONFIG] = opts;
24
23
  }
25
24
  }
26
25
 
27
- export class Resolver {
28
- constructor<T>(opts: ResolverOpts<T>) {
29
- // $FlowFixMe
26
+ export class Resolver<T = unknown> {
27
+ [CONFIG]: ResolverOpts<T>;
28
+
29
+ constructor(opts: ResolverOpts<T>) {
30
30
  this[CONFIG] = opts;
31
31
  }
32
32
  }
33
33
 
34
- export class Bundler {
35
- constructor<T>(opts: BundlerOpts<T>) {
36
- // $FlowFixMe
34
+ export class Bundler<T = unknown> {
35
+ [CONFIG]: BundlerOpts<T>;
36
+
37
+ constructor(opts: BundlerOpts<T>) {
37
38
  this[CONFIG] = opts;
38
39
  }
39
40
  }
40
41
 
41
- export class Namer {
42
- constructor<T>(opts: NamerOpts<T>) {
43
- // $FlowFixMe
42
+ export class Namer<T = unknown> {
43
+ [CONFIG]: NamerOpts<T>;
44
+
45
+ constructor(opts: NamerOpts<T>) {
44
46
  this[CONFIG] = opts;
45
47
  }
46
48
  }
47
49
 
48
- export class Runtime {
49
- constructor<T>(opts: RuntimeOpts<T>) {
50
- // $FlowFixMe
50
+ export class Runtime<T = unknown> {
51
+ [CONFIG]: RuntimeOpts<T>;
52
+
53
+ constructor(opts: RuntimeOpts<T>) {
51
54
  this[CONFIG] = opts;
52
55
  }
53
56
  }
54
57
 
55
58
  export class Validator {
59
+ [CONFIG]: ValidatorOpts;
60
+
56
61
  constructor(opts: ValidatorOpts) {
57
- // $FlowFixMe
58
62
  this[CONFIG] = opts;
59
63
  }
60
64
  }
61
65
 
62
- export class Packager {
63
- constructor<T, U>(opts: PackagerOpts<T, U>) {
64
- // $FlowFixMe
66
+ export class Packager<T = unknown, U = unknown> {
67
+ [CONFIG]: PackagerOpts<T, U>;
68
+
69
+ constructor(opts: PackagerOpts<T, U>) {
65
70
  this[CONFIG] = opts;
66
71
  }
67
72
  }
68
73
 
69
- export class Optimizer {
70
- constructor<T, U>(opts: OptimizerOpts<T, U>) {
71
- // $FlowFixMe
74
+ export class Optimizer<T = unknown, U = unknown> {
75
+ [CONFIG]: OptimizerOpts<T, U>;
76
+
77
+ constructor(opts: OptimizerOpts<T, U>) {
72
78
  this[CONFIG] = opts;
73
79
  }
74
80
  }
75
81
 
76
82
  export class Compressor {
83
+ [CONFIG]: CompressorOpts;
84
+
77
85
  constructor(opts: CompressorOpts) {
78
- // $FlowFixMe
79
86
  this[CONFIG] = opts;
80
87
  }
81
88
  }
82
89
 
83
90
  export class Reporter {
91
+ [CONFIG]: ReporterOpts;
92
+
84
93
  constructor(opts: ReporterOpts) {
85
- // $FlowFixMe
86
94
  this[CONFIG] = opts;
87
95
  }
88
96
  }
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }