-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathversions.js
55 lines (51 loc) · 1.52 KB
/
versions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// @ts-check
// Note: these type definitions are only checked within an editor. We aren't set up
// for type-checking in the build (yet!) but having these types defined helped me write this code.
/**
* @typedef {object} VersionMapping
* @property {string} docsVersion
* @property {string} optimizeVersion
*
* @typedef {object} UnsupportedVersion
* @property {string} label
* @property {string} urlSuffix
*/
/** @type {Array<VersionMapping>} */
const versionMappings = [
// 👋 When cutting a new version, add a new mapping here!
{
docsVersion: "8.6",
optimizeVersion: "3.14.0",
},
{
docsVersion: "8.5",
optimizeVersion: "3.13.0",
},
{
docsVersion: "8.4",
optimizeVersion: "3.12.0",
},
{
docsVersion: "8.3",
optimizeVersion: "3.11.0",
},
];
/** @type {Array<UnsupportedVersion>} */
const unsupportedVersions = [
// 👋 When archiving a version, move it from the above array into here, and edit it!
// `label` appears in the top navbar version selector.
// `urlSuffix` gets appended to the target `unsupported.docs.camunda.io/` URL.
{ label: "8.2 / 3.10.0", urlSuffix: "8.2" },
{ label: "8.1 / 3.9.0", urlSuffix: "8.1" },
{ label: "8.0 / 3.8.0", urlSuffix: "8.0" },
{ label: "1.3 / 3.7.0", urlSuffix: "1.3" },
{ label: "1.2", urlSuffix: "1.2" },
{ label: "1.1", urlSuffix: "1.1" },
{ label: "1.0", urlSuffix: "1.0" },
{ label: "0.26", urlSuffix: "0.26" },
{ label: "0.25", urlSuffix: "0.25" },
];
module.exports = {
versionMappings,
unsupportedVersions,
};