From 8d304ced25cdaf57a927637753680478320774ef Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Wed, 13 Dec 2023 10:12:37 -0800 Subject: [PATCH] Retire `nodejs14.x` (deprecated 2023-11-27) Retire `python3.7` (deprecated 2023-11-27) Retire `'ruby2.7',` (deprecated 2023-12-07) Update readme and changelog --- changelog.md | 10 ++++++++++ cjs/index.js | 27 +++------------------------ readme.md | 22 +++++++++++----------- 3 files changed, 24 insertions(+), 35 deletions(-) diff --git a/changelog.md b/changelog.md index c2a8dfc..52003dc 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/cjs/index.js b/cjs/index.js index ad1d4cc..ff9a016 100644 --- a/cjs/index.js +++ b/cjs/index.js @@ -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', @@ -29,7 +27,6 @@ let runtimes = { 'go1.x', ], ruby: [ - 'ruby2.7', 'ruby3.2', ], custom: [ @@ -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', @@ -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', @@ -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), []) @@ -221,6 +197,7 @@ let aliases = { let retiredRuntimes = { node: [ + 'nodejs14.x', 'nodejs12.x', 'nodejs10.x', 'nodejs8.10', @@ -230,10 +207,12 @@ let retiredRuntimes = { 'nodejs', // 0.10 ], python: [ + 'python3.7', 'python3.6', 'python2.7', ], ruby: [ + 'ruby2.7', 'ruby2.5', ], java: [], diff --git a/readme.md b/readme.md index ffa957a..e24fd22 100644 --- a/readme.md +++ b/readme.md @@ -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` @@ -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: {