-
Notifications
You must be signed in to change notification settings - Fork 63
chore: Mark 1.x as End-of-Support #994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
texastony
merged 12 commits into
aws:mainline-1.x
from
texastony:1.x-warning-client-creation
Aug 29, 2022
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a977af6
feat(*Client): Warn of V1 End of Support
texastony 18507ab
docs(SupportPolicy): Mark 1.x End-of-Support
texastony cef372a
chore: run prettier
texastony 17211ae
fix(Client): Emit EOS Message as warning
texastony 3bc4556
ci(codebuild): use image standard5.0 for CB
texastony 3ba2834
chore: remove eslint step
texastony 503e45c
docs(SUPPORT_POLICY): 2.x Maintenance
texastony b8e1c6a
ci(CodeBuild): NodeJS10 skip coverage-browser
texastony d4dd3b1
ci(CodeBuild): NodeJS12 compute w/ 7GB
texastony f293d5a
ci(CodeBuild): NodeJS10 compute w/ 7GB
texastony 01d410e
fix(CodeBuild): NodeJS10 is no on image 5
texastony e848315
ci(CodeBuild): publish to NPM via CodeBuild
texastony File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Overview | ||
======== | ||
This page describes the support policy for the AWS Encryption SDK. We regularly provide the AWS Encryption SDK with updates that may contain support for new or updated APIs, new features, enhancements, bug fixes, security patches, or documentation updates. Updates may also address changes with dependencies, language runtimes, and operating systems. | ||
|
||
We recommend users to stay up-to-date with Encryption SDK releases to keep up with the latest features, security updates, and underlying dependencies. Continued use of an unsupported SDK version is not recommended and is done at the user’s discretion. | ||
|
||
|
||
Major Version Lifecycle | ||
======================== | ||
The AWS Encryption SDK follows the same major version lifecycle as the AWS SDK. For details on this lifecycle, see `AWS SDKs and Tools Maintenance Policy`_. | ||
|
||
Version Support Matrix | ||
====================== | ||
This table describes the current support status of each major version of the AWS Encryption SDK for Javascript. It also shows the next status each major version will transition to, and the date at which that transition will happen. | ||
|
||
.. list-table:: | ||
:widths: 30 50 50 50 | ||
:header-rows: 1 | ||
|
||
* - Major version | ||
- Current status | ||
- Next status | ||
- Next status date | ||
* - 1.x | ||
- End of Support | ||
- | ||
- | ||
* - 2.x | ||
- Maintenance | ||
- End of Support | ||
- 2023-03-02 | ||
* - 3.x | ||
- General Availability | ||
- | ||
- | ||
|
||
.. _AWS SDKs and Tools Maintenance Policy: https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html#version-life-cycle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: 0.2 | ||
|
||
batch: | ||
fast-fail: true | ||
build-graph: | ||
# CI | ||
- identifier: nodejs10 | ||
buildspec: codebuild/nodejs10.yml | ||
env: | ||
compute-type: BUILD_GENERAL1_MEDIUM | ||
- identifier: nodejs12 | ||
buildspec: codebuild/nodejs12.yml | ||
env: | ||
image: aws/codebuild/standard:5.0 | ||
compute-type: BUILD_GENERAL1_MEDIUM | ||
|
||
# Version the project and push git commits and tags | ||
- identifier: version | ||
depend-on: | ||
- nodejs10 | ||
- nodejs12 | ||
buildspec: codebuild/release/version.yml | ||
env: | ||
image: aws/codebuild/standard:5.0 | ||
|
||
# Publish the release to npm | ||
- identifier: publish | ||
depend-on: | ||
- version | ||
buildspec: codebuild/release/publish.yml | ||
env: | ||
image: aws/codebuild/standard:5.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
BRANCH: "mainline-1.x" | ||
secrets-manager: | ||
OTP_SECRET_KEY: npm/aws-crypto-tools-ci-bot/2FA:OTP_SECRET_KEY | ||
NPM_TOKEN: npm/aws-crypto-tools-ci-bot/2FA:NPM_TOKEN | ||
|
||
phases: | ||
install: | ||
commands: | ||
- npm ci --unsafe-perm | ||
# Install `otplib` to extract the OTP from the npm 2FA secret | ||
- npm install otplib --no-save | ||
- npm run build | ||
runtime-versions: | ||
nodejs: 12 | ||
pre_build: | ||
commands: | ||
- git checkout $BRANCH | ||
build: | ||
commands: | ||
# Extract the otp using the secrets environment variables from above. | ||
# This will wait for the next token. This is because npm uses | ||
# TOTP and the tokens time out after 30 seconds. If the process just | ||
# extracted the token then the lifetime for this token | ||
# would be very random. This will maximize the amount of time | ||
# available on the OTP to publish. | ||
- >- | ||
OTP=`node -e " | ||
auth=require('otplib').authenticator; | ||
setTimeout(() => | ||
console.log(auth.generate(process.env.OTP_SECRET_KEY)), | ||
auth.timeRemaining() * 1000); | ||
"` | ||
# npm will only expand env vars inside .npmrc | ||
# NOTE the ' this is to keep the env var NPM_TOKEN from expanding! | ||
- echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc | ||
# Now we publish to npm. | ||
# This is going to use the OTP generated above and the NPM_TOKEN | ||
# environment variable. This will only publish things that are | ||
# missing from npm. It is therefore safe to run repeatedly. | ||
- npx lerna publish from-package --yes --otp $OTP | ||
# remove after publishing | ||
- rm .npmrc | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
BRANCH: "mainline-1.x" | ||
# An explicit version bump | ||
VERSION_BUMP: "" | ||
git-credential-helper: yes | ||
|
||
phases: | ||
install: | ||
commands: | ||
- npm ci --unsafe-perm | ||
runtime-versions: | ||
nodejs: 12 | ||
pre_build: | ||
commands: | ||
- git config --global user.name "aws-crypto-tools-ci-bot" | ||
- git config --global user.email "no-reply@noemail.local" | ||
- git checkout $BRANCH | ||
build: | ||
commands: | ||
# Generate new version and CHANGELOG entry and push it | ||
- npx lerna version --conventional-commits --git-remote origin --yes ${VERSION_BUMP:+$VERSION_BUMP --force-publish} | ||
# Log the commit for posterity | ||
- git log -n 1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
were you able to test this on your local to see if it worked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testing, on my local:
Results are here texastony@03424c5