@atlaspack/transformer-postcss 2.14.25 → 2.14.26

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,18 @@
1
1
  # @atlaspack/transformer-postcss
2
2
 
3
+ ## 2.14.26
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
9
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
10
+ - @atlaspack/types-internal@2.19.2
11
+ - @atlaspack/diagnostic@2.14.3
12
+ - @atlaspack/plugin@2.14.26
13
+ - @atlaspack/utils@2.18.3
14
+ - @atlaspack/rust@3.6.1
15
+
3
16
  ## 2.14.25
4
17
 
5
18
  ### Patch Changes
@@ -145,16 +145,12 @@ var _default = exports.default = new (_plugin().Transformer)({
145
145
  let configKey;
146
146
  let hint;
147
147
  if (config.raw.modules) {
148
- // @ts-expect-error TS2345
149
148
  message = (0, _diagnostic().md)`The "modules" option in __${filename}__ can be replaced with configuration for @atlaspack/transformer-css to improve build performance.`;
150
149
  configKey = '/modules';
151
- // @ts-expect-error TS2345
152
150
  hint = (0, _diagnostic().md)`Remove the "modules" option from __${filename}__`;
153
151
  } else {
154
- // @ts-expect-error TS2345
155
152
  message = (0, _diagnostic().md)`The "postcss-modules" plugin in __${filename}__ can be replaced with configuration for @atlaspack/transformer-css to improve build performance.`;
156
153
  configKey = '/plugins/postcss-modules';
157
- // @ts-expect-error TS2345
158
154
  hint = (0, _diagnostic().md)`Remove the "postcss-modules" plugin from __${filename}__`;
159
155
  }
160
156
  if (filename === 'package.json') {
@@ -162,9 +158,7 @@ var _default = exports.default = new (_plugin().Transformer)({
162
158
  }
163
159
  let hints = ['Enable the "cssModules" option for "@atlaspack/transformer-css" in your package.json'];
164
160
  if (plugins.length === 0) {
165
- // @ts-expect-error TS2345
166
161
  message += (0, _diagnostic().md)` Since there are no other plugins, __${filename}__ can be deleted safely.`;
167
- // @ts-expect-error TS2345
168
162
  hints.push((0, _diagnostic().md)`Delete __${filename}__`);
169
163
  } else {
170
164
  hints.push(hint);
package/lib/loadConfig.js CHANGED
@@ -74,14 +74,10 @@ async function configHydrator(configFile, config, resolveFrom, options, logger)
74
74
  let message;
75
75
  let hints = [];
76
76
  if (!isPackageJson && redundantPlugins.length === pluginArray.length) {
77
- // @ts-expect-error TS2345
78
77
  message = (0, _diagnostic().md)`Parcel includes CSS transpilation and vendor prefixing by default. PostCSS config __${filename}__ contains only redundant plugins. Deleting it may significantly improve build performance.`;
79
- // @ts-expect-error TS2345
80
78
  hints.push((0, _diagnostic().md)`Delete __${filename}__`);
81
79
  } else {
82
- // @ts-expect-error TS2345
83
80
  message = (0, _diagnostic().md)`Parcel includes CSS transpilation and vendor prefixing by default. PostCSS config __${filename}__ contains the following redundant plugins: ${[...redundantPlugins].map(p => _diagnostic().md.underline(p))}. Removing these may improve build performance.`;
84
- // @ts-expect-error TS2345
85
81
  hints.push((0, _diagnostic().md)`Remove the above plugins from __${filename}__`);
86
82
  }
87
83
  let codeFrames;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-postcss",
3
- "version": "2.14.25",
3
+ "version": "2.14.26",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,11 +16,11 @@
16
16
  "node": ">= 16.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/diagnostic": "2.14.2",
20
- "@atlaspack/plugin": "2.14.25",
21
- "@atlaspack/rust": "3.6.0",
22
- "@atlaspack/utils": "2.18.2",
23
- "@atlaspack/types-internal": "2.19.1",
19
+ "@atlaspack/diagnostic": "2.14.3",
20
+ "@atlaspack/plugin": "2.14.26",
21
+ "@atlaspack/rust": "3.6.1",
22
+ "@atlaspack/utils": "2.18.3",
23
+ "@atlaspack/types-internal": "2.19.2",
24
24
  "clone": "^2.1.1",
25
25
  "nullthrows": "^1.1.1",
26
26
  "postcss-value-parser": "^4.2.0",
@@ -102,16 +102,12 @@ export default new Transformer({
102
102
  let configKey;
103
103
  let hint;
104
104
  if (config.raw.modules) {
105
- // @ts-expect-error TS2345
106
105
  message = md`The "modules" option in __${filename}__ can be replaced with configuration for @atlaspack/transformer-css to improve build performance.`;
107
106
  configKey = '/modules';
108
- // @ts-expect-error TS2345
109
107
  hint = md`Remove the "modules" option from __${filename}__`;
110
108
  } else {
111
- // @ts-expect-error TS2345
112
109
  message = md`The "postcss-modules" plugin in __${filename}__ can be replaced with configuration for @atlaspack/transformer-css to improve build performance.`;
113
110
  configKey = '/plugins/postcss-modules';
114
- // @ts-expect-error TS2345
115
111
  hint = md`Remove the "postcss-modules" plugin from __${filename}__`;
116
112
  }
117
113
  if (filename === 'package.json') {
@@ -122,9 +118,7 @@ export default new Transformer({
122
118
  'Enable the "cssModules" option for "@atlaspack/transformer-css" in your package.json',
123
119
  ];
124
120
  if (plugins.length === 0) {
125
- // @ts-expect-error TS2345
126
121
  message += md` Since there are no other plugins, __${filename}__ can be deleted safely.`;
127
- // @ts-expect-error TS2345
128
122
  hints.push(md`Delete __${filename}__`);
129
123
  } else {
130
124
  hints.push(hint);
package/src/loadConfig.ts CHANGED
@@ -82,18 +82,14 @@ async function configHydrator(
82
82
  let message;
83
83
  let hints: Array<string> = [];
84
84
  if (!isPackageJson && redundantPlugins.length === pluginArray.length) {
85
- // @ts-expect-error TS2345
86
85
  message = md`Parcel includes CSS transpilation and vendor prefixing by default. PostCSS config __${filename}__ contains only redundant plugins. Deleting it may significantly improve build performance.`;
87
- // @ts-expect-error TS2345
88
86
  hints.push(md`Delete __${filename}__`);
89
87
  } else {
90
- // @ts-expect-error TS2345
91
88
  message = md`Parcel includes CSS transpilation and vendor prefixing by default. PostCSS config __${filename}__ contains the following redundant plugins: ${[
92
89
  ...redundantPlugins,
93
90
  ].map((p) =>
94
91
  md.underline(p),
95
92
  )}. Removing these may improve build performance.`;
96
- // @ts-expect-error TS2345
97
93
  hints.push(md`Remove the above plugins from __${filename}__`);
98
94
  }
99
95