@patternslib/dev 4.0.0 → 4.0.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/.release-it.js +3 -3
- package/CHANGES.md +35 -0
- package/Makefile +14 -21
- package/package.json +1 -2
package/.release-it.js
CHANGED
|
@@ -3,7 +3,7 @@ const path = require("path");
|
|
|
3
3
|
|
|
4
4
|
const commits_template = fs
|
|
5
5
|
.readFileSync(
|
|
6
|
-
path.resolve(__dirname, "release-it", "conventional-changelog-commit.hbs")
|
|
6
|
+
path.resolve(__dirname, "release-it", "conventional-changelog-commit.hbs"),
|
|
7
7
|
)
|
|
8
8
|
.toString();
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
publish: true,
|
|
13
13
|
},
|
|
14
14
|
git: {
|
|
15
|
-
requireBranch: ["master", "main"],
|
|
15
|
+
requireBranch: ["master", "main", "*.x"],
|
|
16
16
|
commitMessage: "Release new version.",
|
|
17
17
|
commitArgs: ["-n"],
|
|
18
18
|
},
|
|
@@ -56,6 +56,6 @@ module.exports = {
|
|
|
56
56
|
// the new version number comment in the entry scripts.
|
|
57
57
|
// Use the make target which does a check to not build if the package
|
|
58
58
|
// is this `@patternslib/dev` package.
|
|
59
|
-
"after:bump": "make bundle
|
|
59
|
+
"after:bump": "make bundle && make release-zip",
|
|
60
60
|
},
|
|
61
61
|
};
|
package/CHANGES.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [4.0.2](https://github.com/Patternslib/dev/compare/4.0.1...4.0.2) (2026-09-05)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Fix repeated changelog entries. ([1a1095d](https://github.com/Patternslib/dev/commit/1a1095d500fbc9a9148142d7a1181b1479743a8d))
|
|
11
|
+
|
|
12
|
+
When releasing the changelog file got messed up by repeating already
|
|
13
|
+
included changelog entries. That was due to a setting, which should have
|
|
14
|
+
combined all pre-release changes into a final release.
|
|
15
|
+
|
|
16
|
+
This was given up in favor of a clean changelog entry list. The final
|
|
17
|
+
release will not combine all pre-release changes. This is what most
|
|
18
|
+
projects do anyways, so this change is fine, IMO.
|
|
19
|
+
|
|
20
|
+
## [4.0.1](https://github.com/Patternslib/dev/compare/4.0.0...4.0.1) (2026-09-05)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
* Fix problems with recent releases. ([ece3ae5](https://github.com/Patternslib/dev/commit/ece3ae5342157097f35b9bba0829c685661b5456))
|
|
26
|
+
|
|
27
|
+
The following problems are now fixed:
|
|
28
|
+
|
|
29
|
+
- Whole history included in new changelog entries.
|
|
30
|
+
- No dist/ published due to silent failures.
|
|
31
|
+
- No GitHub release page updates.
|
|
32
|
+
- No GutHub bundle zip upload.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Maintenance
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
* **release-it:** Allow to release from version-branches (e.g. 2.0.x or 2.x). ([c4cd074](https://github.com/Patternslib/dev/commit/c4cd074b6e2b689fec3e28b0c0855b7503c7a06f))
|
|
39
|
+
|
|
5
40
|
## [4.0.0](https://github.com/Patternslib/dev/compare/3.9.0-alpha.1...4.0.0) (2026-04-23)
|
|
6
41
|
|
|
7
42
|
### Features
|
package/Makefile
CHANGED
|
@@ -20,6 +20,7 @@ PACKAGE_NAME := $(shell node -p "require('./package.json').name")
|
|
|
20
20
|
BUNDLE_NAME := $(subst @patternslib/,,$(subst @plone/,,$(PACKAGE_NAME)))
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
.PHONY: install
|
|
23
24
|
yarn.lock install: .git/hooks/commit-msg
|
|
24
25
|
$(YARN) install
|
|
25
26
|
|
|
@@ -29,7 +30,7 @@ yarn.lock install: .git/hooks/commit-msg
|
|
|
29
30
|
chmod u+x .git/hooks/commit-msg
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
.PHONY: clean
|
|
33
|
+
.PHONY: clean-dist
|
|
33
34
|
clean-dist:
|
|
34
35
|
rm -Rf dist/
|
|
35
36
|
|
|
@@ -84,7 +85,7 @@ ifeq ($(BUILDABLE),true)
|
|
|
84
85
|
$(eval PACKAGE_VERSION := $(shell node -p "require('./package.json').version"))
|
|
85
86
|
@echo Creating $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip
|
|
86
87
|
mkdir -p $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION)
|
|
87
|
-
|
|
88
|
+
cp -R dist/. $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION)
|
|
88
89
|
zip -r $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION)/
|
|
89
90
|
rm -Rf $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION)
|
|
90
91
|
endif
|
|
@@ -93,43 +94,35 @@ endif
|
|
|
93
94
|
# Prepare some necessary variables.
|
|
94
95
|
.PHONY: prepare-release
|
|
95
96
|
prepare-release:
|
|
97
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS :=)
|
|
96
98
|
ifeq ($(LEVEL),$(filter $(LEVEL), alpha beta))
|
|
97
99
|
@# case alpha or beta pre-release
|
|
98
100
|
|
|
99
|
-
@# Changelog for the GitHub release when doing prereleases:
|
|
100
|
-
@# Include all the changes since the previous pre- or regular release.
|
|
101
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS += "")
|
|
102
|
-
|
|
103
101
|
@# Set level argument for release-it.
|
|
104
102
|
$(eval RELEASE_IT_LEVEL := "--preRelease=$(LEVEL)")
|
|
105
103
|
else
|
|
106
104
|
@# case normal major/minor/patch release
|
|
107
105
|
|
|
108
|
-
@# Changelog for the GitHub release when doing regular releases:
|
|
109
|
-
@# Include all changes since the previous regular release, also including
|
|
110
|
-
@# changes from pre-releases.
|
|
111
|
-
@# See: https://github.com/release-it/release-it/blob/master/docs/pre-releases.md
|
|
112
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS += "--git.tagExclude='*[-]*' \\")
|
|
113
|
-
|
|
114
106
|
@# Set level argument for release-it.
|
|
115
107
|
$(eval RELEASE_IT_LEVEL := $(LEVEL))
|
|
116
108
|
endif
|
|
117
109
|
|
|
118
110
|
|
|
111
|
+
# Note release-zip is run via the `after:bump` hook from .release-it.js, so
|
|
112
|
+
# that the build contains the correct version bump.
|
|
119
113
|
.PHONY: release
|
|
120
114
|
release: clean install check prepare-release
|
|
121
|
-
@# Note:
|
|
122
|
-
@# have to allow it in a .npmignore file.
|
|
115
|
+
@# Note: The consuming package must include dist/ in its package.json files list.
|
|
123
116
|
|
|
124
117
|
$(eval PACKAGE_VERSION := $(shell npx release-it $(RELEASE_IT_LEVEL) --release-version))
|
|
125
118
|
ifeq ($(BUILDABLE),true)
|
|
126
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS +=
|
|
119
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS += --github.assets=$(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip)
|
|
127
120
|
endif
|
|
128
121
|
|
|
129
122
|
npx release-it \
|
|
130
123
|
$(RELEASE_IT_LEVEL) \
|
|
131
124
|
--github.release \
|
|
132
|
-
--github.update \
|
|
125
|
+
--no-github.update \
|
|
133
126
|
--no-github.draft \
|
|
134
127
|
$(RELEASE_IT_GITHUB_OPTIONS)
|
|
135
128
|
|
|
@@ -140,25 +133,25 @@ endif
|
|
|
140
133
|
|
|
141
134
|
.PHONY: release-major
|
|
142
135
|
release-major:
|
|
143
|
-
|
|
136
|
+
$(MAKE) LEVEL=major release
|
|
144
137
|
|
|
145
138
|
|
|
146
139
|
.PHONY: release-minor
|
|
147
140
|
release-minor:
|
|
148
|
-
|
|
141
|
+
$(MAKE) LEVEL=minor release
|
|
149
142
|
|
|
150
143
|
|
|
151
144
|
.PHONY: release-patch
|
|
152
145
|
release-patch:
|
|
153
|
-
|
|
146
|
+
$(MAKE) LEVEL=patch release
|
|
154
147
|
|
|
155
148
|
.PHONY: prerelease-alpha
|
|
156
149
|
prerelease-alpha:
|
|
157
|
-
|
|
150
|
+
$(MAKE) LEVEL=alpha release
|
|
158
151
|
|
|
159
152
|
.PHONY: prerelease-beta
|
|
160
153
|
prerelease-beta:
|
|
161
|
-
|
|
154
|
+
$(MAKE) LEVEL=beta release
|
|
162
155
|
|
|
163
156
|
|
|
164
157
|
.PHONY: serve
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternslib/dev",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Development base files for working with Patternslib and add-ons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"@eslint/js": "^10.0.1",
|
|
12
12
|
"@release-it/conventional-changelog": "^10.0.6",
|
|
13
13
|
"babel-loader": "^10.1.1",
|
|
14
|
-
"caniuse-lite": "1.0.30001790",
|
|
15
14
|
"css-loader": "^7.1.4",
|
|
16
15
|
"eslint": "^10.2.1",
|
|
17
16
|
"eslint-config-prettier": "^10.1.8",
|