@atlaspack/plugin 2.14.19 → 2.14.20

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,14 @@
1
1
  # @atlaspack/plugin
2
2
 
3
+ ## 2.14.20
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
9
+ - Updated dependencies []:
10
+ - @atlaspack/types@2.15.10
11
+
3
12
  ## 2.14.19
4
13
 
5
14
  ### Patch Changes
package/lib/PluginAPI.js CHANGED
@@ -8,71 +8,91 @@ exports.Validator = exports.Transformer = exports.Runtime = exports.Resolver = e
8
8
  // parcel plugins.
9
9
  const CONFIG = Symbol.for('parcel-plugin-config');
10
10
  class Transformer {
11
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
12
+
11
13
  constructor(opts) {
12
- // $FlowFixMe
14
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
13
15
  this[CONFIG] = opts;
14
16
  }
15
17
  }
16
18
  exports.Transformer = Transformer;
17
19
  class Resolver {
20
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
21
+
18
22
  constructor(opts) {
19
- // $FlowFixMe
23
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
20
24
  this[CONFIG] = opts;
21
25
  }
22
26
  }
23
27
  exports.Resolver = Resolver;
24
28
  class Bundler {
29
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
30
+
25
31
  constructor(opts) {
26
- // $FlowFixMe
32
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
27
33
  this[CONFIG] = opts;
28
34
  }
29
35
  }
30
36
  exports.Bundler = Bundler;
31
37
  class Namer {
38
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
39
+
32
40
  constructor(opts) {
33
- // $FlowFixMe
41
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
34
42
  this[CONFIG] = opts;
35
43
  }
36
44
  }
37
45
  exports.Namer = Namer;
38
46
  class Runtime {
47
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
48
+
39
49
  constructor(opts) {
40
- // $FlowFixMe
50
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
41
51
  this[CONFIG] = opts;
42
52
  }
43
53
  }
44
54
  exports.Runtime = Runtime;
45
55
  class Validator {
56
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
57
+
46
58
  constructor(opts) {
47
- // $FlowFixMe
59
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
48
60
  this[CONFIG] = opts;
49
61
  }
50
62
  }
51
63
  exports.Validator = Validator;
52
64
  class Packager {
65
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
66
+
53
67
  constructor(opts) {
54
- // $FlowFixMe
68
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
55
69
  this[CONFIG] = opts;
56
70
  }
57
71
  }
58
72
  exports.Packager = Packager;
59
73
  class Optimizer {
74
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
75
+
60
76
  constructor(opts) {
61
- // $FlowFixMe
77
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
62
78
  this[CONFIG] = opts;
63
79
  }
64
80
  }
65
81
  exports.Optimizer = Optimizer;
66
82
  class Compressor {
83
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
84
+
67
85
  constructor(opts) {
68
- // $FlowFixMe
86
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
69
87
  this[CONFIG] = opts;
70
88
  }
71
89
  }
72
90
  exports.Compressor = Compressor;
73
91
  class Reporter {
92
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
93
+
74
94
  constructor(opts) {
75
- // $FlowFixMe
95
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
76
96
  this[CONFIG] = opts;
77
97
  }
78
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/plugin",
3
- "version": "2.14.19",
3
+ "version": "2.14.20",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -20,6 +20,6 @@
20
20
  "check-ts": "tsc --noEmit src/PluginAPI.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/types": "2.15.9"
23
+ "@atlaspack/types": "2.15.10"
24
24
  }
25
25
  }
package/src/PluginAPI.js CHANGED
@@ -17,72 +17,102 @@ import type {
17
17
  // parcel plugins.
18
18
  const CONFIG = Symbol.for('parcel-plugin-config');
19
19
 
20
- export class Transformer {
21
- constructor<T>(opts: TransformerOpts<T>) {
22
- // $FlowFixMe
20
+ export class Transformer<T = mixed> {
21
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
22
+ [CONFIG]: TransformerOpts<T>;
23
+
24
+ constructor(opts: TransformerOpts<T>) {
25
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
23
26
  this[CONFIG] = opts;
24
27
  }
25
28
  }
26
29
 
27
- export class Resolver {
28
- constructor<T>(opts: ResolverOpts<T>) {
29
- // $FlowFixMe
30
+ export class Resolver<T = mixed> {
31
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
32
+ [CONFIG]: ResolverOpts<T>;
33
+
34
+ constructor(opts: ResolverOpts<T>) {
35
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
30
36
  this[CONFIG] = opts;
31
37
  }
32
38
  }
33
39
 
34
- export class Bundler {
35
- constructor<T>(opts: BundlerOpts<T>) {
36
- // $FlowFixMe
40
+ export class Bundler<T = mixed> {
41
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
42
+ [CONFIG]: BundlerOpts<T>;
43
+
44
+ constructor(opts: BundlerOpts<T>) {
45
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
37
46
  this[CONFIG] = opts;
38
47
  }
39
48
  }
40
49
 
41
- export class Namer {
42
- constructor<T>(opts: NamerOpts<T>) {
43
- // $FlowFixMe
50
+ export class Namer<T = mixed> {
51
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
52
+ [CONFIG]: NamerOpts<T>;
53
+
54
+ constructor(opts: NamerOpts<T>) {
55
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
44
56
  this[CONFIG] = opts;
45
57
  }
46
58
  }
47
59
 
48
- export class Runtime {
49
- constructor<T>(opts: RuntimeOpts<T>) {
50
- // $FlowFixMe
60
+ export class Runtime<T = mixed> {
61
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
62
+ [CONFIG]: RuntimeOpts<T>;
63
+
64
+ constructor(opts: RuntimeOpts<T>) {
65
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
51
66
  this[CONFIG] = opts;
52
67
  }
53
68
  }
54
69
 
55
70
  export class Validator {
71
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
72
+ [CONFIG]: ValidatorOpts;
73
+
56
74
  constructor(opts: ValidatorOpts) {
57
- // $FlowFixMe
75
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
58
76
  this[CONFIG] = opts;
59
77
  }
60
78
  }
61
79
 
62
- export class Packager {
63
- constructor<T, U>(opts: PackagerOpts<T, U>) {
64
- // $FlowFixMe
80
+ export class Packager<T = mixed, U = mixed> {
81
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
82
+ [CONFIG]: PackagerOpts<T, U>;
83
+
84
+ constructor(opts: PackagerOpts<T, U>) {
85
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
65
86
  this[CONFIG] = opts;
66
87
  }
67
88
  }
68
89
 
69
- export class Optimizer {
70
- constructor<T, U>(opts: OptimizerOpts<T, U>) {
71
- // $FlowFixMe
90
+ export class Optimizer<T = mixed, U = mixed> {
91
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
92
+ [CONFIG]: OptimizerOpts<T, U>;
93
+
94
+ constructor(opts: OptimizerOpts<T, U>) {
95
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
72
96
  this[CONFIG] = opts;
73
97
  }
74
98
  }
75
99
 
76
100
  export class Compressor {
101
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
102
+ [CONFIG]: CompressorOpts;
103
+
77
104
  constructor(opts: CompressorOpts) {
78
- // $FlowFixMe
105
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
79
106
  this[CONFIG] = opts;
80
107
  }
81
108
  }
82
109
 
83
110
  export class Reporter {
111
+ // $FlowFixMe: Computed property keys not supported. [unsupported-syntax]
112
+ [CONFIG]: ReporterOpts;
113
+
84
114
  constructor(opts: ReporterOpts) {
85
- // $FlowFixMe
115
+ // $FlowFixMe: because an index signature declaring the expected key / value type is missing in
86
116
  this[CONFIG] = opts;
87
117
  }
88
118
  }