@j-ulrich/release-it-regex-bumper 5.3.0 → 5.4.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020-2025 Jochen Ulrich
3
+ Copyright (c) 2020-2026 Jochen Ulrich
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -437,6 +437,6 @@ npx release-it --no-plugins.@j-ulrich/release-it-regex-bumper.out
437
437
 
438
438
  # License #
439
439
 
440
- Copyright (c) 2020-2025 Jochen Ulrich
440
+ Copyright (c) 2020-2026 Jochen Ulrich
441
441
 
442
442
  Licensed under [MIT license](LICENSE).
package/index.js CHANGED
@@ -8,8 +8,7 @@ import _ from 'lodash';
8
8
  import XRegExp from 'xregexp';
9
9
  import semver from 'semver';
10
10
  import { Plugin } from 'release-it';
11
- import dateFormat from 'date-fns/format/index.js';
12
- import dateFormatIso from 'date-fns/formatISO/index.js';
11
+ import { format as dateFormat, formatISO as dateFormatISO } from 'date-fns';
13
12
 
14
13
 
15
14
  const readFile = promisify( fsReadFile );
@@ -408,7 +407,7 @@ function prepareReplacement( replace, context ) {
408
407
  latestTag: context.latestTag || '',
409
408
  now: ( format ) => {
410
409
  if ( _.isNil( format ) ) {
411
- return dateFormatIso( context.executionTime );
410
+ return dateFormatISO( context.executionTime );
412
411
  }
413
412
  return dateFormat( context.executionTime, format );
414
413
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j-ulrich/release-it-regex-bumper",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Regular expression based version read/write plugin for release-it",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -41,29 +41,29 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "chalk": "^5.0.0",
44
- "date-fns": "^2.8.0",
44
+ "date-fns": "3 || 4",
45
45
  "fast-glob": "^3.2.0",
46
46
  "lodash": "^4.17.20",
47
47
  "semver": "^7.3.0",
48
48
  "xregexp": "^5.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "release-it": "16 || 17 || 18 || 19"
51
+ "release-it": "16 || 17 || 18 || 19 || 20"
52
52
  },
53
53
  "optionalDependencies": {
54
- "diff": "3 - 5"
54
+ "diff": "3 - 8"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@j-ulrich/eslint-config": "^1.0.0",
58
58
  "@release-it/keep-a-changelog": "^7.0.0",
59
- "ava": "^5.3.1",
60
- "c8": "^8.0.1",
59
+ "ava": "^7.0.0",
60
+ "c8": "^11.0.0",
61
61
  "eslint": "^8.6.0",
62
62
  "eslint-plugin-security": "^1.4.0",
63
- "release-it": "^19.0.1",
64
- "sinon": "^17 || ^18",
63
+ "release-it": "^19.2.4",
64
+ "sinon": "^21.0.3",
65
65
  "temp": "^0.9.4",
66
- "testdouble": "^3.16.4"
66
+ "testdouble": "^3.20.2"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=16"