@patternslib/dev 4.0.0 → 4.0.1
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 +20 -0
- package/Makefile +15 -13
- 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,26 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
## [4.0.1](https://github.com/Patternslib/dev/compare/4.0.0...4.0.1) (2026-09-05)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Fix problems with recent releases. ([ece3ae5](https://github.com/Patternslib/dev/commit/ece3ae5342157097f35b9bba0829c685661b5456))
|
|
11
|
+
|
|
12
|
+
The following problems are now fixed:
|
|
13
|
+
|
|
14
|
+
- Whole history included in new changelog entries.
|
|
15
|
+
- No dist/ published due to silent failures.
|
|
16
|
+
- No GitHub release page updates.
|
|
17
|
+
- No GutHub bundle zip upload.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Maintenance
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
* **release-it:** Allow to release from version-branches (e.g. 2.0.x or 2.x). ([c4cd074](https://github.com/Patternslib/dev/commit/c4cd074b6e2b689fec3e28b0c0855b7503c7a06f))
|
|
24
|
+
|
|
5
25
|
## [4.0.0](https://github.com/Patternslib/dev/compare/3.9.0-alpha.1...4.0.0) (2026-04-23)
|
|
6
26
|
|
|
7
27
|
### 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
|
|
@@ -98,7 +99,7 @@ ifeq ($(LEVEL),$(filter $(LEVEL), alpha beta))
|
|
|
98
99
|
|
|
99
100
|
@# Changelog for the GitHub release when doing prereleases:
|
|
100
101
|
@# Include all the changes since the previous pre- or regular release.
|
|
101
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS
|
|
102
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS :=)
|
|
102
103
|
|
|
103
104
|
@# Set level argument for release-it.
|
|
104
105
|
$(eval RELEASE_IT_LEVEL := "--preRelease=$(LEVEL)")
|
|
@@ -109,27 +110,28 @@ else
|
|
|
109
110
|
@# Include all changes since the previous regular release, also including
|
|
110
111
|
@# changes from pre-releases.
|
|
111
112
|
@# See: https://github.com/release-it/release-it/blob/master/docs/pre-releases.md
|
|
112
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS
|
|
113
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS := --git.tagExclude='*[-]*')
|
|
113
114
|
|
|
114
115
|
@# Set level argument for release-it.
|
|
115
116
|
$(eval RELEASE_IT_LEVEL := $(LEVEL))
|
|
116
117
|
endif
|
|
117
118
|
|
|
118
119
|
|
|
120
|
+
# Note release-zip is run via the `after:bump` hook from .release-it.js, so
|
|
121
|
+
# that the build contains the correct version bump.
|
|
119
122
|
.PHONY: release
|
|
120
123
|
release: clean install check prepare-release
|
|
121
|
-
@# Note:
|
|
122
|
-
@# have to allow it in a .npmignore file.
|
|
124
|
+
@# Note: The consuming package must include dist/ in its package.json files list.
|
|
123
125
|
|
|
124
126
|
$(eval PACKAGE_VERSION := $(shell npx release-it $(RELEASE_IT_LEVEL) --release-version))
|
|
125
127
|
ifeq ($(BUILDABLE),true)
|
|
126
|
-
$(eval RELEASE_IT_GITHUB_OPTIONS +=
|
|
128
|
+
$(eval RELEASE_IT_GITHUB_OPTIONS += --github.assets=$(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip)
|
|
127
129
|
endif
|
|
128
130
|
|
|
129
131
|
npx release-it \
|
|
130
132
|
$(RELEASE_IT_LEVEL) \
|
|
131
133
|
--github.release \
|
|
132
|
-
--github.update \
|
|
134
|
+
--no-github.update \
|
|
133
135
|
--no-github.draft \
|
|
134
136
|
$(RELEASE_IT_GITHUB_OPTIONS)
|
|
135
137
|
|
|
@@ -140,25 +142,25 @@ endif
|
|
|
140
142
|
|
|
141
143
|
.PHONY: release-major
|
|
142
144
|
release-major:
|
|
143
|
-
|
|
145
|
+
$(MAKE) LEVEL=major release
|
|
144
146
|
|
|
145
147
|
|
|
146
148
|
.PHONY: release-minor
|
|
147
149
|
release-minor:
|
|
148
|
-
|
|
150
|
+
$(MAKE) LEVEL=minor release
|
|
149
151
|
|
|
150
152
|
|
|
151
153
|
.PHONY: release-patch
|
|
152
154
|
release-patch:
|
|
153
|
-
|
|
155
|
+
$(MAKE) LEVEL=patch release
|
|
154
156
|
|
|
155
157
|
.PHONY: prerelease-alpha
|
|
156
158
|
prerelease-alpha:
|
|
157
|
-
|
|
159
|
+
$(MAKE) LEVEL=alpha release
|
|
158
160
|
|
|
159
161
|
.PHONY: prerelease-beta
|
|
160
162
|
prerelease-beta:
|
|
161
|
-
|
|
163
|
+
$(MAKE) LEVEL=beta release
|
|
162
164
|
|
|
163
165
|
|
|
164
166
|
.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.1",
|
|
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",
|