Skip to content

Commit

Permalink
Retire nodejs14.x (deprecated 2023-11-27)
Browse files Browse the repository at this point in the history
Retire `python3.7` (deprecated 2023-11-27)
Retire `'ruby2.7',` (deprecated 2023-12-07)
Update readme and changelog
  • Loading branch information
ryanblock committed Dec 13, 2023
1 parent 99bff01 commit 8d304ce
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 35 deletions.
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

---

## [1.1.7] 2023-12-13

### Added

- Retired `nodejs14.x` (deprecated 2023-11-27)
- Retired `python3.7` (deprecated 2023-11-27)
- Retired `'ruby2.7',` (deprecated 2023-12-07)

---

## [1.1.6] 2023-11-15

### Added
Expand Down
27 changes: 3 additions & 24 deletions cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ let runtimes = {
'nodejs16.x',
'nodejs20.x',
'nodejs18.x',
'nodejs14.x',
],
python: [
'python3.9',
'python3.11',
'python3.10',
'python3.8',
'python3.7',
],
java: [
'java11',
Expand All @@ -29,7 +27,6 @@ let runtimes = {
'go1.x',
],
ruby: [
'ruby2.7',
'ruby3.2',
],
custom: [
Expand Down Expand Up @@ -61,13 +58,6 @@ let runtimeVersions = {
patch: null,
wildcard: '16.*.*'
},
'nodejs14.x': {
runtime: 'node',
major: '14',
minor: null,
patch: null,
wildcard: '14.*.*'
},
'python3.11': {
runtime: 'python',
major: '3',
Expand Down Expand Up @@ -96,13 +86,6 @@ let runtimeVersions = {
patch: null,
wildcard: '3.8.*',
},
'python3.7': {
runtime: 'python',
major: '3',
minor: '7',
patch: null,
wildcard: '3.7.*',
},
'java17': {
runtime: 'java',
major: '17',
Expand Down Expand Up @@ -159,13 +142,6 @@ let runtimeVersions = {
patch: null,
wildcard: '3.2.*',
},
'ruby2.7': {
runtime: 'ruby',
major: '2',
minor: '7',
patch: null,
wildcard: '2.7.*',
},
}

let runtimeList = Object.values(runtimes).reduce((a, b) => a.concat(b), [])
Expand Down Expand Up @@ -221,6 +197,7 @@ let aliases = {

let retiredRuntimes = {
node: [
'nodejs14.x',
'nodejs12.x',
'nodejs10.x',
'nodejs8.10',
Expand All @@ -230,10 +207,12 @@ let retiredRuntimes = {
'nodejs', // 0.10
],
python: [
'python3.7',
'python3.6',
'python2.7',
],
ruby: [
'ruby2.7',
'ruby2.5',
],
java: [],
Expand Down
22 changes: 11 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ let {

`lambda-runtimes` exports seven items:
- **`runtimes`** (object) - Lambda runtime strings, organized by runtime name
- Example: `runtimes.node[0]``nodejs14.x`
- Example: `runtimes.node[0]``nodejs20.x`
- Where appropriate, each runtime may include (lowcase normalized) aliases, e.g. `runtimes.node` === `runtimes.nodejs` === `runtimes.['node.js']`
- **`runtimeVersions`** (object) - Semver representations of each Lambda runtime
- Example: `runtimeVersions['nodejs14.x']` returns an object with `major: '14'`, `minor: null`, `patch: null`, and `wildcard: '14.*.*'` properties
- Example: `runtimeVersions['nodejs20.x']` returns an object with `major: '20'`, `minor: null`, `patch: null`, and `wildcard: '20.*.*'` properties
- **`runtimeList`** (array) - list of all Lambda runtime strings (order not necessarily guaranteed)
- **`runtimesByArchitecture`** (object) - list of Lambda runtimes supported by each CPU architecture
- Example: `runtimesByArchitecture.arm64[0]``nodejs14.x`)
- Example: `runtimesByArchitecture.arm64[0]``nodejs20.x`)
- **`architecturesByRuntime`** (object) - list of Lambda CPU architectures supported by each runtime
- Example: `architecturesByRuntime['nodejs14.x']``[ 'arm64', 'x86_64' ]`)
- Example: `architecturesByRuntime['nodejs20.x']``[ 'arm64', 'x86_64' ]`)
- **`aliases`** (object) - shorthand or alternate names for runtime aliases (e.g. `py` for `python`)
- **`retiredRuntimes`** (object) - retired / EOL Lambda runtime strings, organized by runtime name
- Example: `retiredRuntimes.node[0]``nodejs10.x`
Expand All @@ -54,21 +54,21 @@ Example:
```js
{
runtimes: {
node: [ 'nodejs14.x', 'nodejs12.x' ],
node: [ 'nodejs20.x', 'nodejs18.x' ],
...
},
runtimeVersions: {
'nodejs14.x': { major: '14', minor: null, patch: null, wildcard: '14.*.*' },
'nodejs20.x': { major: '20', minor: null, patch: null, wildcard: '20.*.*' },
...
},
runtimeList: [ 'nodejs14.x', 'nodejs12.x', ... ],
runtimeList: [ 'nodejs20.x', 'nodejs18.x', ... ],
runtimesByArchitecture: {
arm64: [ 'nodejs14.x', 'nodejs12.x', ... ],
x86_64: [ 'nodejs14.x', 'nodejs12.x', ... ]
arm64: [ 'nodejs20.x', 'nodejs18.x', ... ],
x86_64: [ 'nodejs20.x', 'nodejs18.x', ... ]
},
architecturesByRuntime: {
'nodejs14.x': [ 'arm64', 'x86_64' ],
'nodejs12.x': [ 'arm64', 'x86_64' ],
'nodejs20.x': [ 'arm64', 'x86_64' ],
'nodejs18.x': [ 'arm64', 'x86_64' ],
...
},
aliases: {
Expand Down

0 comments on commit 8d304ce

Please sign in to comment.