@xh/hoist-dev-utils 5.9.3 → 5.12.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.
@@ -113,6 +113,10 @@ try {reactPkg = require('react/package')} catch (e) {reactPkg = {version: 'NOT_F
113
113
  * @param {boolean} [env.loadAllBlueprintJsIcons] - false (default) to only load the BlueprintJs
114
114
  * icons required by Hoist React components, resulting in a much smaller bundle size. Set to
115
115
  * true if your app wishes to access all the BP icons (but consider FontAwesome instead!).
116
+ * @param {(Object|boolean)} [env.devHttps] - Object of the form `{ca, cert, key}`, with each
117
+ * key pointing to the required resource for a full SSL config. Pass `true` to serve locally
118
+ * over SSL w/o providing a cert (browser will warn). Applies to local dev only, no effect on
119
+ * production builds.
116
120
  */
117
121
  async function configureWebpack(env) {
118
122
  if (!env.appCode) throw 'Missing required "appCode" config - cannot proceed';
@@ -129,6 +133,14 @@ async function configureWebpack(env) {
129
133
  checkForDupePackages = env.checkForDupePackages !== false,
130
134
  dupePackageCheckExcludes = env.dupePackageCheckExcludes || ['tslib'],
131
135
  devHost = (env.devHost ? env.devHost.toLowerCase() : 'localhost'),
136
+ devHttps = prodBuild ?
137
+ null :
138
+ _.isPlainObject(env.devHttps) ?
139
+ {
140
+ ca: fs.readFileSync(env.devHttps.ca),
141
+ cert: fs.readFileSync(env.devHttps.cert),
142
+ key: fs.readFileSync(env.devHttps.key)
143
+ } : !!env.devHttps,
132
144
  devGrailsPort = env.devGrailsPort || 8080,
133
145
  devWebpackPort = env.devWebpackPort || 3000,
134
146
  baseUrl = env.baseUrl || (prodBuild ? '/api/' : `http://${devHost}:${devGrailsPort}/`),
@@ -197,6 +209,11 @@ async function configureWebpack(env) {
197
209
  const preflightScriptPath = path.resolve(hoistPath, 'static/preflight.js'),
198
210
  preflightScriptExists = fs.existsSync(preflightScriptPath);
199
211
 
212
+ // Resolve path to spinner image included in HR >= 43 to prep for copy into public assets.
213
+ // Displayed by generated HTML index page while JS app downloads and starts.
214
+ const preloadSpinnerPath = path.resolve(hoistPath, 'static/spinner.png'),
215
+ preloadSpinnerExists = fs.existsSync(preloadSpinnerPath);
216
+
200
217
  // Tell webpack where to look for modules when resolving imports - this is the key to getting
201
218
  // inlineHoist mode to look in within the checked-out hoist-react project at hoistPath.
202
219
  if (inlineHoist) {
@@ -553,7 +570,8 @@ async function configureWebpack(env) {
553
570
  new CopyWebpackPlugin({
554
571
  patterns: _.compact([
555
572
  copyPublicAssets ? {from: path.resolve(basePath, 'public'), to: 'public'} : undefined,
556
- preflightScriptExists ? {from: preflightScriptPath, to: 'public'} : undefined
573
+ preflightScriptExists ? {from: preflightScriptPath, to: 'public'} : undefined,
574
+ preloadSpinnerExists ? {from: preloadSpinnerPath, to: 'public'} : undefined
557
575
  ])
558
576
  }),
559
577
 
@@ -573,7 +591,10 @@ async function configureWebpack(env) {
573
591
  template: path.resolve(hoistPath, `static/${templateFilename}`),
574
592
  filename: `${jsAppName}/index.html`,
575
593
  excludeChunks: excludeAssets,
576
- minify: false // no need to minify the HTML itself
594
+ // No need to minify the HTML itself
595
+ minify: false,
596
+ // Flag read within template file to conditionally render spinner img tag.
597
+ enablePreloadSpinner: preloadSpinnerExists
577
598
  });
578
599
  }),
579
600
 
@@ -641,6 +662,7 @@ async function configureWebpack(env) {
641
662
 
642
663
  // Inline dev-time configuration for webpack-dev-server.
643
664
  devServer: prodBuild ? undefined : {
665
+ https: devHttps,
644
666
  host: devHost,
645
667
  port: devWebpackPort,
646
668
  overlay: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "5.9.3",
3
+ "version": "5.12.0",
4
4
  "description": "Utilities for configuring builds of Hoist-React client applications.",
5
5
  "repository": "github:xh/hoist-dev-utils",
6
6
  "homepage": "https://github.com/xh/hoist-dev-utils",
@@ -11,14 +11,14 @@
11
11
  "configureWebpack.js"
12
12
  ],
13
13
  "dependencies": {
14
- "@babel/core": "~7.15.0",
15
- "@babel/plugin-proposal-decorators": "~7.14.5",
16
- "@babel/preset-env": "~7.15.0",
17
- "@babel/preset-react": "~7.14.5",
18
- "@types/lodash": "~4.14.172",
19
- "@types/react": "~17.0.16",
14
+ "@babel/core": "~7.16.5",
15
+ "@babel/plugin-proposal-decorators": "~7.16.5",
16
+ "@babel/preset-env": "~7.16.5",
17
+ "@babel/preset-react": "~7.16.5",
18
+ "@types/lodash": "~4.14.178",
19
+ "@types/react": "~17.0.37",
20
20
  "@xh/eslint-config": "~3.0.5",
21
- "autoprefixer": "~10.3.1",
21
+ "autoprefixer": "~10.4.0",
22
22
  "babel-loader": "~8.2.2",
23
23
  "babel-plugin-transform-imports": "~2.0.0",
24
24
  "case-sensitive-paths-webpack-plugin": "~2.4.0",
@@ -44,7 +44,7 @@
44
44
  "terser-webpack-plugin": "~4.2.3",
45
45
  "url-loader": "~4.1.1",
46
46
  "webpack": "~4.44.2",
47
- "webpack-bundle-analyzer": "~4.4.1",
47
+ "webpack-bundle-analyzer": "~4.5.0",
48
48
  "webpack-cli": "~3.3.12",
49
49
  "webpack-dev-server": "~3.11.2",
50
50
  "webpackbar": "~4.0.0"
package/CHANGELOG.md DELETED
@@ -1,553 +0,0 @@
1
- # Changelog
2
-
3
- ## v5.9.3 - 2021-08-10
4
-
5
- * Add newly required babel plugin config to avoid console warnings during compilation.
6
-
7
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.9.2...5.9.3)
8
-
9
- ## v5.9.2 - 2021-08-10
10
-
11
- ### 📚 Libraries
12
-
13
- * @babel/* `7.14 -> 7.15`
14
- * autoprefixer `10.2 -> 10.3`
15
- * sass `1.35 -> 1.37`
16
-
17
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.9.1...5.9.2)
18
-
19
- ## v5.9.1 - 2021-06-24
20
-
21
- ### 📚 Libraries
22
-
23
- * @babel/* `7.13 -> 7.14`
24
- * mini-css-extract-plugin `1.4 -> 1.6`
25
- * post-css `8.2 -> 8.3`
26
- * sass `1.32 -> 1.35`
27
-
28
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.9.0...5.9.1)
29
-
30
- ## v5.9.0 - 2021-05-04
31
-
32
- ### ⚙️ Technical
33
-
34
- * Updated default `targetBrowsers` config for Babel-based transpiling to replace `Edge >= 18` with
35
- `last 2 Edge versions` (v89-90 as of this release). This removes a certain amount of transpiled
36
- code generated to support Edge 18.
37
- * Edge 18 was the last version released before that browser's switch to the Chromium engine in
38
- January 2020.
39
- * ⚠ Any apps that require Edge 18 support and observe issues with this change can specify an
40
- appropriate set of targets within their `webpack.config.js` file.
41
-
42
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.8.0...5.9.0)
43
-
44
- ## v5.8.0 - 2021-04-22
45
-
46
- ### 🎁 New Features
47
-
48
- * New `faviconManifestConfig` option added to `configureWebpack()` build script. Allows
49
- customization of certain options related to adding a mobile app to a device home screen, as well
50
- as "installing" an app via Chrome's "create shortcut" option.
51
- * Default options also improved to properly set application name, version, and non-empty
52
- description (defaults to appName, but squelches console warning).
53
- * See https://github.com/itgalaxy/favicons#usage for supported options.
54
-
55
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.7.0...5.8.0)
56
-
57
- ## v5.7.0 - 2021-04-09
58
-
59
- ### 🎁 New Features
60
-
61
- * New `parseChangelog` option added to `configureWebpack()` build script. Set to `true` (default) to
62
- parse an application `CHANGELOG.md` file at the root of your project directory for import by Hoist
63
- React's `XH.changelogService`, which will make its contents available to app users. (Changelog UI
64
- features require @xh/hoist v39.1+.)
65
-
66
- ### ⚙️ Technical
67
-
68
- * The `configureWebpack()` build script function is now async, to support internal async calls. This
69
- is supported out-of-the-box by Webpack, and should not require any application-level changes.
70
-
71
- ### 📚 Libraries
72
-
73
- * changelog-parser `added @ 2.8`
74
- * css-loader `5.0 -> 5.2`
75
- * mini-css-extract-plugin `1.3 -> 1.4`
76
-
77
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.6.0...5.7.0)
78
-
79
- ## v5.6.0 - 2021-02-23
80
-
81
- * Includes updated `@xh/eslint-config@3.0` with switch to `@babel/eslint-parser` - fixes
82
- auto-updates in toolchain dependencies that started to break linting.
83
- * Additional type mapping in `module.rules` to support `.mjs` distros out of the `stylis` library,
84
- included as a transitive dep by `react-select@v4`.
85
-
86
- ### 📚 Libraries
87
-
88
- * @babel/* `7.12 -> 7.13`
89
- * @xh/eslint-config `2.3 -> 3.0`
90
- * autoprefixer `10.0 -> 10.2`
91
- * case-sensitive-paths-webpack-plugin `2.3 -> 2.4`
92
- * postcss `8.1 -> 8.2`
93
- * sass `1.29 -> 1.32`
94
- * webpack-bundle-analyzer `4.2 -> 4.4`
95
-
96
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.5.0...v5.6.0)
97
-
98
- ## v5.5.0 - 2020-12-04
99
-
100
- ### 🎁 New Features
101
-
102
- * New `sourceMaps` option added to `configureWebpack()` build script. Apps can now control sourceMap
103
- generation, including specifying `'devOnly'` to disable maps in production (a recommended security
104
- practice for untrusted environments). Default behavior is unchanged.
105
-
106
- ### 📚 Libraries
107
-
108
- * @babel/* `7.11 -> 7.12`
109
- * @types/react `16.9 -> 17.0`
110
- * autoprefixer `9.8 -> 10.0`
111
- * babel-loader `8.1 -> 8.2`
112
- * copy-webpack-plugin `6.1 -> 6.3`
113
- * css-loader `4.3 -> 5.0`
114
- * file-loader `6.1 -> 6.2`
115
- * mini-css-extract-plugin `0.11 -> 1.3`
116
- * postcss `added @ 8.1`
117
- * postcss-flexbugs-fixes `4.2 -> 5.0`
118
- * postcss-loader `3.0 -> 4.1`
119
- * sass `1.26 -> 1.29`
120
- * sass-loader `9.0 -> 10.1`
121
- * style-loader `1.2 -> 2.0`
122
- * webpack-bundle-analyzer `3.9 -> 4.2`
123
-
124
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.4.0...v5.5.0)
125
-
126
- ## v5.4.0 - 2020-09-22
127
-
128
- ### 🎁 New Features
129
-
130
- * When paired with `hoist-react >= v36.1.0`, this release of dev-utils will avoid the use of any
131
- inline script tags within the `index.html` file generated for each app. Instead, it will copy and
132
- inject a link to an unbundled copy of the `static/preflight.js` script supplied by hoist-react.
133
- * This allows for stricter Content Security Policy (CSP) headers - see Toolbox's nginx config @
134
- `docker/nginx/app.conf` for an example.
135
-
136
- ### 📚 Libraries
137
-
138
- * copy-webpack-plugin `6.0 -> 6.1`
139
- * css-loader `4.2 -> 4.3`
140
- * file-loader `6.0 -> 6.1`
141
- * html-webpack-plugin `4.3 -> 4.5`
142
- * html-webpack-tags-plugin `added @ 2.0`
143
- * mini-css-extract-plugin `0.9 -> 0.11`
144
- * terser-webpack-plugin `4.1 -> 4.2`
145
- * webpack-bundle-analyzer `3.8 -> 3.9`
146
-
147
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.3.0...v5.4.0)
148
-
149
- ## v5.3.0 - 2020-08-20
150
-
151
- ### 📚 Libraries
152
-
153
- Resolutions added for some transitive dependencies that had grown excessively stale and were
154
- triggering console warnings on install/upgrade. Reviewed changelogs for these projects and did not
155
- see any indication that they would be incompatible.
156
-
157
- * @babel/core `7.10 -> 7.11`
158
- * css-loader `3.6 -> 4.2`
159
- * favicons-webpack-plugin `3.0 -> 4.2`
160
- * mini-css-extract-plugin `0.9 -> 0.10`
161
- * terser-webpack-plugin `3.0 -> 4.1`
162
- * webpack `4.43 -> 4.44`
163
-
164
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.2.2...v5.3.0)
165
-
166
- ## v5.2.2 - 2020-07-21
167
-
168
- ### 🐞 Bug Fixes
169
-
170
- * Fix check to detect if replacement stub file for Blueprint icons actually exists.
171
- * (Note v5.2.1 release built but scratched due to error in fix above.)
172
-
173
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.2.0...v5.2.2)
174
-
175
- ## v5.2.0 - 2020-07-20
176
-
177
- ### 🎁 New Features
178
-
179
- * App builds now load only a handful of `@blueprintjs` icons that are actually used by components.
180
- This change significantly reduces build size as BP ships a large set of generic SVG icons and
181
- bundles them all by default, but Hoist already includes FontAwesome as our standard icon library.
182
- * If the full set of Blueprint icons are required for a special app use-case, `configureWebpack()`
183
- now supports a new `loadAllBlueprintJsIcons` argument to revert to the previous behavior.
184
- * Requires `hoist-react` v35.2 or higher to supply the more minimal set of icon SVGs. Older
185
- versions of HR are compatible with this version of dev-utils, but the icons optimization will
186
- not be activated.
187
-
188
- ### 📚 Libraries
189
-
190
- * @xh/eslint-config `2.2 -> 2.3`
191
-
192
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.1.0...v5.2.0)
193
-
194
- ## v5.1.0 - 2020-07-02
195
-
196
- ### 📚 Libraries
197
-
198
- This version switches to the newly-recommended dart-sass library (aka the `sass` npm package) for
199
- SASS compilation. This replaces the often-problematic usage of node-sass, which required OS-specific
200
- tooling to support building native code on developer workstations.
201
-
202
- * css-loader `3.5 -> 3.6`
203
- * node-sass `removed`
204
- * sass `added @ 1.26`
205
- * sass-loader `8.0 -> 9.0`
206
-
207
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v5.0.0...v5.1.0)
208
-
209
- ## v5.0.0 - 2020-06-12
210
-
211
- ### ⚖️ Licensing Change
212
-
213
- As of this release, Hoist is [now licensed](LICENSE.md) under the popular and permissive
214
- [Apache 2.0 open source license](https://www.apache.org/licenses/LICENSE-2.0). Previously, Hoist was
215
- "source available" via our public GitHub repository but still covered by a proprietary license.
216
-
217
- We are making this change to align Hoist's licensing with our ongoing commitment to openness,
218
- transparency and ease-of-use, and to clarify and emphasize the suitability of Hoist for use within a
219
- wide variety of enterprise software projects. For any questions regarding this change, please
220
- [contact us](https://xh.io/contact/).
221
-
222
- ### 📚 Libraries
223
-
224
- This release includes updates to a number of tooling dependencies, including some major updates.
225
- However no changes to application code or configs should be required.
226
-
227
- * @babel/core `7.9 -> 7.10`
228
- * @babel/preset-env `7.9 -> 7.10`
229
- * @babel/preset-react `7.9 -> 7.10`
230
- * autoprefixer `9.7 -> 9.8`
231
- * copy-webpack-plugin `5.1 -> 6.0`
232
- * css-loader `3.4 -> 3.5`
233
- * favicons-webpack-plugin `2.1 -> 3.0`
234
- * html-webpack-plugin `3.2 -> 4.3`
235
- * node-sass `4.13 -> 4.14`
236
- * style-loader `1.1 -> 1.2`
237
- * terser-webpack-plugin `2.3 -> 3.0`
238
- * url-loader `4.0 -> 4.1`
239
- * webpack `4.42 -> 4.43`
240
- * webpack-bundle-analyzer `3.6 -> 3.8`
241
- * webpack-dev-server `3.10 -> 3.11`
242
-
243
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.6.0...v5.0.0)
244
-
245
-
246
- ## v4.6.0 - 2020-03-29
247
-
248
- ### 🎁 New Features
249
-
250
- * New Babel preset-env `bugfixes` option defaulted to true. Intended to to further minimize
251
- transpilation to ES5 where not required by targeted browsers. See
252
- [Babel Docs](https://babeljs.io/docs/en/babel-preset-env#bugfixes).
253
- * New `babelPresetEnvOptions` config accepted to allow direct override / customization of options
254
- passed to the babel-loader preset-env preset (including disabling the new option above if
255
- problematic).
256
- * New `dupePackageCheckExcludes` config accepted to suppress duplicate package warnings by name.
257
- Defaulted to exclude longstanding (but not problematic) warning for `tslib`.
258
-
259
- ### 📚 Libraries
260
-
261
- * @babel/core `7.8 -> 7.9`
262
- * @babel/preset-env `7.8 -> 7.9`
263
- * @babel/preset-react `7.8 -> 7.9`
264
- * babel-loader `8.0 -> 8.1`
265
- * file-loader `5.0 -> 6.0`
266
- * url-loader `3.0 -> 4.0`
267
-
268
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.5.0...v4.6.0)
269
-
270
-
271
- ## 4.5.0 - 2020-03-04
272
-
273
- ### 🎁 New Features
274
-
275
- * The `/client-app/public` directory and its contents are now copied into the build output. Can be
276
- used to include static assets you wish to link to without using an import to run through the url
277
- or file-loader.
278
-
279
- ### 📚 Libraries
280
-
281
- * copy-webpack-plugin: `added @ 5.1`
282
- * webpack: `4.41 -> 4.42`
283
-
284
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.4.1...v4.5.0)
285
-
286
- ## 4.4.1 - 2020-02-26
287
-
288
- ### 🐞 Bug Fixes
289
-
290
- * Fixed favicon generation with upgrade of plugin - generated HTML again includes tags for correctly
291
- sized favicons across a variety of platforms.
292
-
293
- ### 📚 Libraries
294
-
295
- * favicons-webpack-plugin: `1.0 -> 2.1`
296
-
297
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.4.0...v4.4.1)
298
-
299
- ## 4.4.0 - 2020-02-08
300
-
301
- ### 📚 Libraries
302
-
303
- * @babel/core (and related) `7.7 -> 7.8`
304
- * css-loader `3.2 -> 3.4`
305
- * mini-css-extract-plugin `0.8 -> 0.9`
306
- * style-loader `1.0 -> 1.1`
307
- * terser-webpack-plugin `2.2 -> 2.3`
308
- * webpack-dev-server `3.9 -> 3.10`
309
-
310
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.7...v4.4.0)
311
-
312
- ## 4.3.7 - 2019-12-06
313
-
314
- ### 📚 Libraries
315
-
316
- * @babel/plugin-proposal-nullish-coalescing-operator `7.4 -> 7.7`
317
- * @babel/plugin-proposal-optional-chaining `7.6 -> 7.7`
318
- * file-loader `4.2 -> 5.0`
319
- * url-loader `2.2 -> 3.0`
320
-
321
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.6...v4.3.7)
322
-
323
- ## 4.3.6 - 2019-11-19
324
-
325
- ### 🐞 Bug Fixes
326
-
327
- * Disable Terser mangling of identifiers / variables due to intermittent and difficult to debug
328
- issues with it breaking code, especially when run on already-packaged libraries. Disabling does
329
- increase bundle size, although not by much on a relative basis.
330
-
331
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.5...v4.3.6)
332
-
333
- ## 4.3.5 - 2019-11-15
334
-
335
- ### 📚 Libraries
336
-
337
- * @babel/core (and related) `7.6 -> 7.7`
338
- * autoprefixer `9.6 -> 9.7`
339
- * node-sass `4.12 -> 4.13`
340
- * terser-webpack-plugin `2.1 -> 2.2`
341
- * webpack-bundle-analyzer `3.5 -> 3.6`
342
- * webpack-dev-server `3.8 -> 3.9`
343
- * chalk (removed)
344
-
345
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.4...v4.3.5)
346
-
347
- ## 4.3.4 - 2019-10-14
348
-
349
- ### ⚙️ Technical
350
-
351
- * Bundled `@types/lodash` and `@types/react` as dev dependencies for developer convenience / better
352
- hinting options from IDEs, including support for types such as `ReactNode` in jsdoc comments.
353
-
354
- ### 📚 Libraries
355
-
356
- * @babel/preset-react `7.0 -> 7.6`
357
-
358
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.3...v4.3.4)
359
-
360
- ## 4.3.3 - 2019-10-07
361
-
362
- ### ⚙️ Technical
363
-
364
- * Add new `terserOptions` config as hook for app builds to customize Terser minification directly if
365
- required, although defaults should continue to be fine as they are. Added `keep_classnames: true`
366
- to the Terser defaults now that we are emitting classes.
367
-
368
- ### 📚 Libraries
369
-
370
- * url-loader `2.1 -> 2.2`
371
-
372
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.1...v4.3.3)
373
-
374
- (4.3.2 was an accidental no-op build 😞)
375
-
376
- ## 4.3.1 - 2019-10-02
377
-
378
- ### 📚 Libraries
379
-
380
- * @xh/eslint-config `2.1 -> 2.2`
381
-
382
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.3.0...v4.3.1)
383
-
384
- ## 4.3.0 - 2019-09-27
385
-
386
- ### ⚙️ Technical
387
-
388
- * Removes a previous workaround in `configureWebpack` to always transpile JS code down to ES5
389
- (implemented by pushing IE11 onto the `targetBrowsers` config passed to `babel/preset-env`). Babel
390
- will now actually use Hoist's default target browsers (recent versions of Chrome, Safari/iOS, and
391
- Edge) resulting in a build output with significantly less transformation of the source code.
392
- * Apps or client environments that find they need support for less capable browsers (e.g, a secure
393
- mobile browser using an older JS engine) can pass a custom `targetBrowsers` array to adjust the
394
- output.
395
-
396
- ### 📚 Libraries
397
-
398
- * webpack `4.40 -> 4.41`
399
-
400
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.2.0...v4.3.0)
401
-
402
- ## 4.2.0 - 2019-09-23
403
-
404
- ### 🎁 New Features
405
-
406
- * Support for the nullish coalescing operator `let foo = bar ?? 'default'` via the
407
- `@babel/plugin-proposal-nullish-coalescing-operator` plugin.
408
-
409
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.1.2...v4.2.0)
410
-
411
- ## 4.1.2 - 2019-09-18
412
-
413
- * Tweak to skip logging (spurious) packaged Hoist version when running with Hoist inline.
414
-
415
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.1.1...v4.1.2)
416
-
417
- ## 4.1.1 - 2019-09-17
418
-
419
- ### 📚 Libraries
420
-
421
- * @xh/eslint-config `2.0 -> 2.1.1`
422
- * terser-webpack-plugin `2.0 -> 2.1`
423
-
424
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v4.0.0...v4.1.1)
425
-
426
- ## 4.0.0 - 2019-09-12
427
-
428
- This release includes a number of major/minor updates for the build toolchain. Most notably, it
429
- updates Babel and its plugins from `7.4 -> 7.6`, which removes support for the `@babel/polyfill`
430
- plugin we had been using in favor of `core-js@3` for polyfills (as of 7.5).
431
-
432
- ### 🎁 New Features
433
-
434
- * Support for the nullsafe operator `let foo = bar?.baz` via the
435
- `@babel/plugin-proposal-optional-chaining` plugin.
436
- * Support for `Promise.allSettled()` via the `core-js` polyfills. Hoist v28 will remove its
437
- dependency on the RSVP library which previously provided this utility.
438
-
439
- ### 💥 Breaking Changes
440
-
441
- * **Requires Hoist React v28+**, which adds a required runtime dependency on `core-js` for polyfills
442
- as well as a new static import file referenced by `configureWebpack()` to provide a
443
- once-per-entry-point import of `core-js` and `regenerator-runtime`.
444
-
445
- ### 📚 Libraries
446
-
447
- * @babel `7.4 -> 7.6`
448
- * @xh/eslint-config `1.2 -> 2.0`
449
- * webpack `4.31 -> 4.40`
450
- * *Multiple* other library updates for loaders, plugins, and other utils.
451
-
452
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.8.1...v4.0.0)
453
-
454
- ## v3.8.1 - 2019-08-19
455
-
456
- ### ⚙️ Technical
457
-
458
- * Ensure react is resolved to a single instance of the library when running in `inlineHoist` mode.
459
- (Avoids errors when attempting to call hooks that will throw if called across multiple instances
460
- of the library.)
461
-
462
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.8.0...v3.8.1)
463
-
464
- ## v3.8.0 - 2019-08-16
465
-
466
- ### 📚 Libraries
467
-
468
- * @xh/eslint-config `1.1.1 -> 1.2.0` - react-hooks plugin and linting rules.
469
-
470
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.7...v3.8.0)
471
-
472
- ## v3.7.7 - 2019-08-07
473
-
474
- ### ⚙️ Technical
475
-
476
- * Added new `checkForDupePackages` flag, default true to mirror previous behavior added in 3.7.5.
477
- Set to false to disable duplicate package checking / warnings if unwanted.
478
-
479
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.6...v3.7.7)
480
-
481
- ## v3.7.6 - 2019-07-25
482
-
483
- ### 📚 Libraries
484
-
485
- * @xh/eslint-config `1.1.0 -> 1.1.1` - whitelist WebSocket global.
486
-
487
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.5...v3.7.6)
488
-
489
- ## v3.7.5 - 2019-07-23
490
-
491
- ### ⚙️ Technical
492
-
493
- * Added Webpack `DuplicatePackageCheckerPlugin` to warn on build if non-overlapping dependency
494
- requirements force the inclusion of a package multiple times. (This was happening with lodash,
495
- unexpectedly.)
496
-
497
- ### 📚 Libraries
498
-
499
- * Updated lodash to latest patch release (security fixes)
500
-
501
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.4...v3.7.5)
502
-
503
- ## v3.7.4 - 2019-06-25
504
-
505
- ### 📚 Libraries
506
-
507
- * Restored webpack-cli @ 3.3.2
508
-
509
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.3...v3.7.4)
510
-
511
- ## v3.7.3 - 2019-06-25
512
-
513
- ### 📚 Libraries
514
-
515
- * Removed webpack-cli (this made v3.7.3 unusable)
516
-
517
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.2...v3.7.3)
518
-
519
- ## v3.7.2 - 2019-05-14
520
-
521
- ### 📚 Libraries
522
-
523
- * node-sass `4.11 -> 4.12`
524
- * webpack `4.30 -> 4.31`
525
- * Other minor/patch updates
526
-
527
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.1...v3.7.2)
528
-
529
- ## v3.7.1 - 2019-04-23
530
-
531
- ### 📚 Libraries
532
-
533
- * webpack `4.29 -> 4.30`
534
- * webpack-dev-server `3.2 -> 3.3`
535
- * Other minor/patch updates
536
-
537
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.7.0...v3.7.1)
538
-
539
- ## v3.7.0 - 2019-03-27
540
-
541
- ### 📚 Libraries
542
-
543
- * Babel `7.3 -> 7.4`
544
- * autoprefixer `9.4 -> 9.5`
545
- * webpack-cli `3.2 -> 3.3`
546
-
547
- [Commit Log](https://github.com/xh/hoist-dev-utils/compare/v3.6.0...v3.7.0)
548
-
549
- ------------------------------------------
550
-
551
- 📫☎️🌎 info@xh.io | <https://xh.io/contact>
552
-
553
- Copyright © 2021 Extremely Heavy Industries Inc.