Skip to content

Commit cbe9b7d

Browse files
Merge branch 'main' into feature/12820/crossTab-signIn-signOut
2 parents 6bd538e + 0bf9860 commit cbe9b7d

File tree

112 files changed

+1456
-1629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1456
-1629
lines changed

.github/dependency-review/dependency-review-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ allow-licenses:
1010
- 'BSL-1.0'
1111
- 'CC-BY-3.0'
1212
- 'CC-BY-4.0'
13+
- 'CC-BY-SA-4.0'
1314
- 'CC0-1.0'
1415
- 'curl'
1516
- 'ISC'

.github/workflows/callable-canary-sampleapp-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
run: npm install
126126
working-directory: amplify-js-samples-staging/samples/next/auth/new-next-app
127127
- name: Install latest stable amplify version
128-
run: npm install aws-amplify@latest @aws-amplify/adapter-nextjs@latest
128+
run: npm install aws-amplify@latest @aws-amplify/adapter-nextjs@latest @aws-amplify/auth@latest
129129
working-directory: amplify-js-samples-staging/samples/next/auth/new-next-app
130130
- name: Start application and run test
131131
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ packages/**/esm/
1111
packages/**/cjs/
1212
**/.DS_Store
1313
.vscode
14+
.kiro
1415
.idea
1516
*.log
1617
.npm/

.husky/pre-push

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env sh
2+
3+
# Pre-push hook to scan for secrets using git-secrets
4+
# This prevents accidentally pushing AWS credentials or other secrets
5+
6+
# Check if git-secrets is installed
7+
if ! command -v git-secrets >/dev/null 2>&1; then
8+
echo ""
9+
echo "ERROR: git-secrets is not installed."
10+
echo ""
11+
echo "Please install git-secrets to continue:"
12+
echo ""
13+
echo " macOS: brew install git-secrets"
14+
echo " Linux: See https://github.com/awslabs/git-secrets#installing-git-secrets"
15+
echo " Windows: See https://github.com/awslabs/git-secrets#installing-git-secrets"
16+
echo ""
17+
echo "After installation, register AWS patterns:"
18+
echo " git secrets --register-aws"
19+
echo ""
20+
exit 1
21+
fi
22+
23+
# Run git-secrets scan and propagate exit code
24+
git secrets --scan

CONTRIBUTING.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Whether it's a bug report, new feature, correction, or additional documentation,
88
- [Our Design](#our-design)
99
- [Development Process](#development-process)
1010
- [Setting up for local development](#setting-up-for-local-development)
11+
- [Setting up git-secrets](#setting-up-git-secrets)
1112
- [Architecture of the codebase](#architecture-of-the-codebase)
1213
- [Steps towards contributions](#steps-towards-contributions)
1314
- [Bug Reports](#bug-reports)
@@ -68,6 +69,74 @@ yarn build
6869

6970
> Note: Make sure to always [sync your fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork) with main branch of `amplify-js`
7071
72+
## Setting up git-secrets
73+
74+
This repository uses [git-secrets](https://github.com/awslabs/git-secrets) to prevent accidentally pushing AWS credentials or other secrets. A pre-push hook will scan your commits before pushing to the remote repository.
75+
76+
### Installing git-secrets
77+
78+
**macOS (using Homebrew):**
79+
80+
```bash
81+
brew install git-secrets
82+
```
83+
84+
**Linux (Debian/Ubuntu):**
85+
86+
```bash
87+
sudo apt-get install git-secrets
88+
```
89+
90+
**Linux (manual installation):**
91+
92+
```bash
93+
git clone https://github.com/awslabs/git-secrets.git
94+
cd git-secrets
95+
sudo make install
96+
```
97+
98+
**Windows (manual installation):**
99+
100+
1. Clone the repository: `git clone https://github.com/awslabs/git-secrets.git`
101+
2. Add the `git-secrets` directory to your PATH
102+
3. Alternatively, copy `git-secrets` to a directory already in your PATH
103+
104+
### Registering AWS patterns
105+
106+
After installing git-secrets, register the AWS secret patterns in your local repository:
107+
108+
```bash
109+
git secrets --register-aws
110+
```
111+
112+
This registers patterns to detect:
113+
114+
- AWS Access Key IDs (e.g., `AKIAIOSFODNN7EXAMPLE`)
115+
- AWS Secret Access Keys
116+
- AWS Session Tokens
117+
118+
You can verify the registered patterns with:
119+
120+
```bash
121+
git secrets --list
122+
```
123+
124+
### Handling false positives
125+
126+
If git-secrets flags a legitimate string as a potential secret (false positive), you can add an allowed pattern:
127+
128+
```bash
129+
# Allow a specific pattern
130+
git secrets --add --allowed 'AKIAIOSFODNN7EXAMPLE'
131+
132+
# Allow patterns matching a regex
133+
git secrets --add --allowed 'my-test-pattern.*'
134+
```
135+
136+
Allowed patterns are stored in `.git/config` and apply only to your local repository.
137+
138+
> **Note:** The pre-push hook will block pushes if git-secrets is not installed. Please install and configure git-secrets before contributing.
139+
71140
## Architecture of the codebase
72141

73142
Amplify JS is a monorepo built with `Yarn` and `Lerna`. All the categories of Amplify live within the `packages` directory in the root. Each category inside packages has its own `src/` and `package.json`.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ AWS Amplify is available as `aws-amplify` on [npm](https://www.npmjs.com/package
5252

5353
To get started pick your platform from our [**Getting Started** home page](https://docs.amplify.aws/javascript/)
5454

55+
## Version Support
56+
AWS Amplify JavaScript library v4 and below will end support on **April 13, 2026**, as documented in our [AWS Amplify JavaScript library version support calendar](https://github.com/aws-amplify/amplify-js/issues/14580).
57+
58+
Effective immediately, the AWS Amplify JavaScript library v4 and below will enter **Maintenance Mode** until April 13, 2026 after which it will receive no more updates. While in Maintenance Mode, the libraries will only receive updates for **critical bug fixes and security vulnerabilities**. Refer to [Amplify Documentation](https://docs.amplify.aws/reference/maintenance-policy) for more information on the maintenance policy.
59+
60+
If you are using AWS Amplify JavaScript library v4 and below, we strongly recommend upgrading to the AWS Amplify JavaScript Library v6 before April 13, 2026.
61+
62+
5563
## Notice:
5664

5765
### Amplify 6.x.x has breaking changes. Please see the breaking changes on our [migration guide](https://docs.amplify.aws/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/)

docs/api/assets/navigation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/classes/aws_amplify.auth_cognito.TokenOrchestrator.html

Lines changed: 4 additions & 2 deletions
Large diffs are not rendered by default.

docs/api/classes/aws_amplify.auth_cognito._Reference_Types_.CognitoUserPoolsTokenProvider.html

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)