@adobe/sizewatcher 1.4.1 → 1.4.2

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,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.2
4
+
5
+ Fixes:
6
+
7
+ - [#143](https://github.com/adobe/sizewatcher/pull/143) Handle empty or comments-only `.sizewatcher.yml` config file gracefully after js-yaml 5 upgrade
8
+ - [#150](https://github.com/adobe/sizewatcher/pull/150) Fix tests on Node 26.8+ by replacing mock-fs with real temp directories
9
+
10
+ Improvements:
11
+
12
+ - [#143](https://github.com/adobe/sizewatcher/pull/143) Upgrade js-yaml to v5.4.1 (major version, includes security fixes)
13
+ - [#139](https://github.com/adobe/sizewatcher/pull/139) [#140](https://github.com/adobe/sizewatcher/pull/140) Upgrade tmp to v0.2.7 (security fixes)
14
+ - [#151](https://github.com/adobe/sizewatcher/pull/151) CI: update CircleCI config to version 2.1, README example uses `cimg/node:lts` image
15
+ - [#152](https://github.com/adobe/sizewatcher/pull/152) Set `root: true` in ESLint config
16
+ - CI: update GitHub actions to v7, disable fail-fast on node version matrix
17
+ - Renovate: keep mocha 11 and nyc 17 to retain Node 18 support
18
+ - Various dev dependency updates
19
+
20
+ ## 1.4.1
21
+
22
+ Fixes:
23
+
24
+ - [#136](https://github.com/adobe/sizewatcher/pull/136) [#116](https://github.com/adobe/sizewatcher/issues/116) npm_package: use `npm pack` instead of `npm publish --dry-run`
25
+
26
+ Improvements:
27
+
28
+ - [#123](https://github.com/adobe/sizewatcher/pull/123) Update tmp to v0.2.4 (security fix)
29
+ - [#133](https://github.com/adobe/sizewatcher/pull/133) Update js-yaml to v4.1.1 (security fix)
30
+ - [#128](https://github.com/adobe/sizewatcher/pull/128) Update debug to v4.4.3
31
+ - [#130](https://github.com/adobe/sizewatcher/pull/130) Renovate: ignore whatwg-url from package.json overrides
32
+ - [#134](https://github.com/adobe/sizewatcher/pull/134) Update mocha to v11.7.5
33
+
3
34
  ## 1.4.0
4
35
 
5
36
  Major changes:
package/README.md CHANGED
@@ -319,17 +319,22 @@ For [CircleCI](https://circleci.com) you need to
319
319
  Example `.circleci/config.yml`:
320
320
 
321
321
  ```yaml
322
- version: 2
322
+ version: 2.1
323
323
 
324
324
  jobs:
325
325
  build:
326
326
  docker:
327
- - image: circleci/node:14
327
+ - image: cimg/node:lts
328
328
  steps:
329
329
  - checkout
330
330
 
331
331
  # ---------- this runs sizewatcher ------------
332
332
  - run: npx @adobe/sizewatcher
333
+
334
+ workflows:
335
+ build-and-test:
336
+ jobs:
337
+ - build
333
338
  ```
334
339
 
335
340
  ### Other CIs
package/lib/config.js CHANGED
@@ -39,7 +39,9 @@ function load() {
39
39
 
40
40
  if (fs.existsSync(CONFIG_FILE)) {
41
41
  const data = fs.readFileSync(CONFIG_FILE, "utf8");
42
- const loadedConfig = yaml.load(data) || {};
42
+ // js-yaml 5+ load() throws on empty input (including comments-only files),
43
+ // loadAll() returns [] instead and thus handles an empty config file gracefully
44
+ const loadedConfig = yaml.loadAll(data)[0] || {};
43
45
 
44
46
  config = deepmerge(DEFAULT_CONFIG, loadedConfig);
45
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/sizewatcher",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Warns if your pull requests introduce large size increases.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -33,7 +33,6 @@
33
33
  "coveralls": "^3.1.0",
34
34
  "eslint": "^8.0.0",
35
35
  "mocha": "^11.0.0",
36
- "mock-fs": "^5.5.0",
37
36
  "nyc": "^17.0.0",
38
37
  "supports-color": "^8.1.1"
39
38
  },
@@ -43,11 +42,11 @@
43
42
  "deepmerge": "4.3.1",
44
43
  "get-folder-size": "5.0.0",
45
44
  "glob": "10.3.5",
46
- "js-yaml": "4.1.1",
45
+ "js-yaml": "5.4.1",
47
46
  "pretty-bytes": "5.6.0",
48
47
  "require-dir": "1.2.0",
49
48
  "simple-git": "3.22.0",
50
- "tmp": "0.2.5",
49
+ "tmp": "0.2.7",
51
50
  "xbytes": "1.9.1"
52
51
  },
53
52
  "overrides": {