@patternslib/dev 3.1.12 → 3.2.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/CHANGES.md CHANGED
@@ -2,6 +2,83 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.2.0](https://github.com/patternslib/dev/compare/3.1.13...3.2.0) (2023-04-17)
6
+
7
+
8
+ ### Features
9
+
10
+
11
+ * Change prerelease commands to prerelease-INCREMENT-PREID ([6b488e1](https://github.com/patternslib/dev/commit/6b488e120761951ba01eae524563bdd490a9b739))
12
+
13
+ Change the prerelease commands to define the increment level.
14
+ Instead of "prerelease-alpha" there are now "prerelease-major-alpha",
15
+ "prerelease-minor-alpha" and "prerelease-patch-alpha".
16
+ Instead of "prerelease-beta" there are now "prerelease-major-beta",
17
+ "prerelease-minor-beta" and "prerelease-patch-beta".
18
+ This fixes a problem where the first prerelease for major or minor
19
+ increments got only a patch-level increment.
20
+
21
+
22
+
23
+ ### Maintenance
24
+
25
+
26
+ * Upgrade dependencies. ([68f4ca8](https://github.com/patternslib/dev/commit/68f4ca8b4d243f1b1b25ffacb404be71103b86aa))
27
+
28
+ ## [3.1.13](https://github.com/patternslib/dev/compare/3.1.12...3.1.13) (2023-04-17)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+
34
+ * Improve the release-it commit template to include a newline between each commit and add any commit references to the end. ([1603d0b](https://github.com/patternslib/dev/commit/1603d0b1a08aab290f021b20562c92dab45f75c1))
35
+
36
+
37
+ * Improve the release-it commit template to include a newline between header and body text. ([14ace2b](https://github.com/patternslib/dev/commit/14ace2b2c2c2dd2bc77c4cd0cf9b47744d5ca1c1))
38
+
39
+
40
+ * Include all changes since last regular release only in GitHub releases. ([ec86755](https://github.com/patternslib/dev/commit/ec8675589217f5c66ffcfab273942c11b845a79c))
41
+
42
+ When doing regular releases include all the changes since the last
43
+ regular release - including changes from pre-releases in the release
44
+ notes on GitHub, but not in the CHANGES.md file. In the CHANGES.md file
45
+ every change can be seen at once. Including all the changes since the
46
+ previous regular release is useful for the GitHub release page only.
47
+
48
+
49
+
50
+ ### Maintenance
51
+
52
+
53
+ * Update dependencies. ([b02c37b](https://github.com/patternslib/dev/commit/b02c37b0a41a347f955a7a7a8fb47d8e1f4c4f11))
54
+
55
+ ## [3.1.13](https://github.com/patternslib/dev/compare/3.1.12...3.1.13) (2023-04-17)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+
61
+ * Improve the release-it commit template to include a newline between each commit and add any commit references to the end. ([1603d0b](https://github.com/patternslib/dev/commit/1603d0b1a08aab290f021b20562c92dab45f75c1))
62
+
63
+
64
+ * Improve the release-it commit template to include a newline between header and body text. ([14ace2b](https://github.com/patternslib/dev/commit/14ace2b2c2c2dd2bc77c4cd0cf9b47744d5ca1c1))
65
+
66
+
67
+ * Include all changes since last regular release only in GitHub releases. ([ec86755](https://github.com/patternslib/dev/commit/ec8675589217f5c66ffcfab273942c11b845a79c))
68
+
69
+ When doing regular releases include all the changes since the last
70
+ regular release - including changes from pre-releases in the release
71
+ notes on GitHub, but not in the CHANGES.md file. In the CHANGES.md file
72
+ every change can be seen at once. Including all the changes since the
73
+ previous regular release is useful for the GitHub release page only.
74
+
75
+
76
+
77
+ ### Maintenance
78
+
79
+
80
+ * Update dependencies. ([b02c37b](https://github.com/patternslib/dev/commit/b02c37b0a41a347f955a7a7a8fb47d8e1f4c4f11))
81
+
5
82
  ## [3.1.12](https://github.com/patternslib/dev/compare/3.1.11...3.1.12) (2023-04-03)
6
83
 
7
84
 
package/Makefile CHANGED
@@ -88,22 +88,24 @@ endef
88
88
  prepare-release:
89
89
  @# Get the current package version.
90
90
  $(eval CURRENT_VERSION := $(shell node -p "require('./package.json').version"))
91
- ifeq ($(LEVEL),$(filter $(LEVEL), alpha beta))
92
- @# case alpha or beta pre-release
91
+ ifneq ($(strip $(PRELEVEL)),)
92
+ @# case PRELEVEL not empty which is alpha or beta pre-release
93
93
 
94
- @# Include all changes from the previous release in the changelog by using
95
- @# the release-it default setting.
96
- $(eval RELEASE_IT_EXTRA_OPTIONS := "")
94
+ @# Changelog for the GitHub release when doing prereleases:
95
+ @# Include all the changes since the previous pre- or regular release.
96
+ $(eval RELEASE_IT_GITHUB_OPTIONS := "")
97
97
  @# Set level argument for release-it.
98
- $(eval RELEASE_IT_LEVEL := "--preRelease=$(LEVEL)")
98
+ $(eval RELEASE_IT_LEVEL := "$(LEVEL) --preRelease=$(PRELEVEL)")
99
99
  @# Get the next version via semver.
100
- $(eval NEXT_VERSION := $(shell npx semver --increment prerelease --preid $(LEVEL) $(CURRENT_VERSION)))
100
+ $(eval NEXT_VERSION := $(shell npx semver --increment pre$(LEVEL) --preid $(PRELEVEL) $(CURRENT_VERSION)))
101
101
  else
102
102
  @# case normal major/minor/patch release
103
103
 
104
- @# Include all changes from the previous non-prerelease in the changelog.
104
+ @# Changelog for the GitHub release when doing regular releases:
105
+ @# Include all changes since the previous regular release, also including
106
+ @# changes from pre-releases.
105
107
  @# See: https://github.com/release-it/release-it/blob/master/docs/pre-releases.md
106
- $(eval RELEASE_IT_EXTRA_OPTIONS := "--git.tagExclude='*[-]*'")
108
+ $(eval RELEASE_IT_GITHUB_OPTIONS := "--git.tagExclude='*[-]*'")
107
109
  @# Set level argument for release-it.
108
110
  $(eval RELEASE_IT_LEVEL := $(LEVEL))
109
111
  @# Get the next version via semver.
@@ -129,7 +131,7 @@ release: clean install check prepare-release release-zip
129
131
  @# 1) Release on npm.
130
132
  @# 2) When successful, update release on GitHub
131
133
  @# 3) Checkout CHANGES.md, which was modified by step 2)
132
- npx release-it $(RELEASE_IT_LEVEL) $(RELEASE_IT_EXTRA_OPTIONS) \
134
+ npx release-it $(RELEASE_IT_LEVEL) \
133
135
  && npx release-it \
134
136
  --github.release \
135
137
  --github.update \
@@ -138,6 +140,7 @@ release: clean install check prepare-release release-zip
138
140
  --no-github.draft \
139
141
  --no-git \
140
142
  --no-npm \
143
+ $(RELEASE_IT_GITHUB_OPTIONS) \
141
144
  && git checkout CHANGES.md
142
145
 
143
146
  @# Remove the bundle from release-zip again.
@@ -159,15 +162,33 @@ release-minor:
159
162
  release-patch:
160
163
  make LEVEL=patch release
161
164
 
165
+ # Alpha releases
162
166
 
163
- .PHONY: prerelease-alpha
164
- prerelease-alpha:
165
- make LEVEL=alpha release
167
+ .PHONY: prerelease-major-alpha
168
+ prerelease-major-alpha:
169
+ make LEVEL=major PRELEVEL=alpha release
166
170
 
171
+ .PHONY: prerelease-minor-alpha
172
+ prerelease-minor-alpha:
173
+ make LEVEL=minor PRELEVEL=alpha release
167
174
 
168
- .PHONY: prerelease-beta
169
- prerelease-beta:
170
- make LEVEL=beta release
175
+ .PHONY: prerelease-patch-alpha
176
+ prerelease-patch-alpha:
177
+ make LEVEL=patch PRELEVEL=alpha release
178
+
179
+ # Beta releases
180
+
181
+ .PHONY: prerelease-major-beta
182
+ prerelease-major-beta:
183
+ make LEVEL=major PRELEVEL=beta release
184
+
185
+ .PHONY: prerelease-minor-beta
186
+ prerelease-minor-beta:
187
+ make LEVEL=minor PRELEVEL=beta release
188
+
189
+ .PHONY: prerelease-patch-beta
190
+ prerelease-patch-beta:
191
+ make LEVEL=patch PRELEVEL=beta release
171
192
 
172
193
 
173
194
  .PHONY: serve
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@patternslib/dev",
3
- "version": "3.1.12",
3
+ "version": "3.2.0",
4
4
  "description": "Development base files for working with Patternslib and add-ons.",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
7
  "@babel/core": "^7.21.4",
8
8
  "@babel/eslint-parser": "^7.21.3",
9
9
  "@babel/preset-env": "^7.21.4",
10
- "@commitlint/cli": "^17.5.1",
11
- "@commitlint/config-conventional": "^17.4.4",
10
+ "@commitlint/cli": "^17.6.1",
11
+ "@commitlint/config-conventional": "^17.6.1",
12
12
  "@release-it/conventional-changelog": "^5.1.1",
13
13
  "babel-loader": "^9.1.2",
14
14
  "css-loader": "^6.7.3",
15
- "eslint": "^8.37.0",
15
+ "eslint": "^8.38.0",
16
16
  "eslint-config-prettier": "^8.8.0",
17
17
  "husky": "^8.0.3",
18
18
  "identity-obj-proxy": "^3.0.0",
@@ -22,16 +22,16 @@
22
22
  "prettier": "^2.8.7",
23
23
  "regenerator-runtime": "^0.13.11",
24
24
  "release-it": "^15.10.1",
25
- "sass": "^1.60.0",
25
+ "sass": "^1.62.0",
26
26
  "sass-loader": "^13.2.2",
27
- "semver": "^7.3.8",
27
+ "semver": "^7.5.0",
28
28
  "style-loader": "^3.3.2",
29
29
  "terser-webpack-plugin": "^5.3.7",
30
30
  "timezone-mock": "^1.3.6",
31
- "webpack": "^5.77.0",
31
+ "webpack": "^5.79.0",
32
32
  "webpack-bundle-analyzer": "^4.8.0",
33
33
  "webpack-cli": "^5.0.1",
34
- "webpack-dev-server": "^4.13.2",
34
+ "webpack-dev-server": "^4.13.3",
35
35
  "whybundled": "^2.0.0",
36
36
  "yarn": "^1.22.19"
37
37
  },
@@ -24,9 +24,19 @@
24
24
  {{~hash}}
25
25
  {{~/if}}
26
26
 
27
+ {{#if body}}
28
+
29
+ {{body}}
30
+ {{/if}}
31
+ {{#if footer}}
32
+
33
+ {{footer}}
34
+ {{/if}}
35
+
27
36
  {{~!-- commit references --}}
28
37
  {{~#if references~}}
29
- , closes
38
+
39
+ closes
30
40
  {{~#each references}} {{#if @root.linkReferences~}}
31
41
  [
32
42
  {{~#if this.owner}}
@@ -59,12 +69,4 @@
59
69
  {{~this.repository}}#{{this.issue}}
60
70
  {{~/if}}{{/each}}
61
71
  {{~/if}}
62
- {{#if body}}
63
-
64
- {{~body}}
65
- {{~/if}}
66
- {{#if footer}}
67
-
68
- {{~footer}}
69
- {{~/if}}
70
72