You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,13 @@
2
2
3
3
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
***jsii-pacmak:** fully support the Python Version Identification part of PEP440 ([#4462](https://github.com/aws/jsii/issues/4462)) ([c8483fb](https://github.com/aws/jsii/commit/c8483fb5c3b2efc75a123fd4816859758b8612dd))
// Ensure that prerelease composed entirely of [label, sequence] pairs
112
+
version.prerelease.forEach((elem,idx,arr)=>{
113
+
constnext: string|number|undefined=arr[idx+1];
114
+
if(typeofelem==='string'){
115
+
if(!Object.keys(releaseLabels).includes(elem)){
116
+
validationErrors.push(
117
+
`Label ${elem} is not one of ${Object.keys(releaseLabels).join(
118
+
',',
119
+
)}`,
120
+
);
121
+
}
122
+
if(next===undefined||!Number.isInteger(next)){
123
+
validationErrors.push(
124
+
`Label ${elem} must be followed by a positive integer`,
125
+
);
126
+
}
127
+
}
128
+
});
129
+
130
+
if(validationErrors.length>0){
100
131
thrownewError(
101
132
`Unable to map prerelease identifier (in: ${assemblyVersion}) components to python: ${inspect(
102
133
version.prerelease,
103
-
)}. The format should be 'X.Y.Z-label.sequence', where sequence is a positive integer, and label is "dev", "pre", "alpha", beta", or "rc"`,
134
+
)}. The format should be 'X.Y.Z-[label.sequence][.post.sequence][.(dev|pre).sequence]', where sequence is a positive integer and label is one of ${inspect(
0 commit comments