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