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