Skip to content
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

Merge remote-tracking branch 'upstream/main' into v5/custom-clients #11374

Merged
merged 66 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
3f7a52f
chore: Update `next` from `main` (#11004)
jimblanc Feb 21, 2023
448fc4c
Merge branch 'next' into chore/update-next
jimblanc Mar 10, 2023
9cfe377
Update `next` from `main` (#11066)
jimblanc Mar 10, 2023
20ab772
feat(auth/cognito): base directory structure, service clients and sig…
haverchuck Mar 17, 2023
706a627
feat(auth): Add sign up error handling (#11153)
israx Apr 10, 2023
88b5c26
Merge branch 'next' into main
jimblanc Apr 11, 2023
530cf04
Revert "Merge branch 'next' into main" (#11220)
jimblanc Apr 11, 2023
524a982
chore(deps): bump nokogiri from 1.13.10 to 1.14.3 in /docs (#11218)
dependabot[bot] Apr 12, 2023
1b5840e
chore(deps): bump commonmarker from 0.23.8 to 0.23.9 in /docs (#11219)
dependabot[bot] Apr 12, 2023
4c955d4
feat(aws-amplify): Commit for bumping minor version of aws-amplify (#…
elorzafe Apr 12, 2023
dbd94d9
chore: Docs updates (#11228)
elorzafe Apr 12, 2023
d4a7eb8
chore: Release process (#11230)
cshfang Apr 12, 2023
eb8e3e6
chore(release): Publish [ci skip]
Apr 12, 2023
feb819f
chore(release): update version.ts [ci skip]
Apr 12, 2023
26d142b
fix: update lerna config to fix build (#11235)
david-mcafee Apr 12, 2023
7fe7d4e
fix(notifications): Fix permissions type (#11237)
cshfang Apr 12, 2023
d604a42
chore: Release process (#11239)
elorzafe Apr 13, 2023
a330d2f
chore(release): Publish [ci skip]
Apr 13, 2023
81c8ec0
chore(release): update version.ts [ci skip]
Apr 13, 2023
ffe902c
Update _config.yml
elorzafe Apr 13, 2023
6825f8d
Update _config.yml (#11242)
elorzafe Apr 13, 2023
bee9370
Update site-header.html
elorzafe Apr 13, 2023
4bc9941
Update site-head.html
elorzafe Apr 13, 2023
6fd1af9
Update site-header.html (#11243)
elorzafe Apr 13, 2023
00deb3a
chore: fixed type in Auth.verifyTotpToken log
helgabalashova Apr 14, 2023
cccb18a
chore: fixed typo in Auth.verifyTotpToken log (#11249)
helgabalashova Apr 14, 2023
680e146
Test/pn sync init (#11250)
cshfang Apr 15, 2023
08ad590
fix(notifications): Support use_frameworks! (#11253)
cshfang Apr 17, 2023
992b7eb
fix(data): sync processor, fake GraphQL service, and unit test fixes.…
david-mcafee Apr 17, 2023
29564c2
chore: Release process (#11263)
elorzafe Apr 17, 2023
7f290cd
chore(release): Publish [ci skip]
Apr 18, 2023
b9ef77c
chore(release): update version.ts [ci skip]
Apr 18, 2023
218bf1c
chore: Doc updates & layout fixes (#11244)
jimblanc Apr 18, 2023
b60999e
chore: Remove XR category from repo (#11248)
jimblanc Apr 18, 2023
a712d81
feat: add github action to automatically remove pending-response labe…
josefaidt Apr 19, 2023
431723c
chore: Enable automatic API doc generation (#11268)
jimblanc Apr 20, 2023
6f50c20
chore: Amplify JS Release (#11276)
jimblanc Apr 20, 2023
eef3783
chore(release): Publish [ci skip]
Apr 20, 2023
3482f11
chore(release): update version.ts [ci skip]
Apr 20, 2023
fed7774
chore(release): update API docs [ci skip]
Apr 20, 2023
43d494b
fix(data): sync processor fixes (#11262)
david-mcafee Apr 21, 2023
c5fcaa9
updated storage config type doc (#11282)
haverchuck Apr 24, 2023
3af9672
feat(data): add simulated cloud latency to fake GraphQL service; sync…
david-mcafee Apr 24, 2023
0197e92
fix(datastore): add missing errorHandler errors for sync and mutation…
svidgen Apr 24, 2023
394cee5
Amplify JS release (#11315)
jimblanc Apr 27, 2023
6e57313
chore(release): Publish [ci skip]
Apr 27, 2023
f3eedb4
chore(release): update version.ts [ci skip]
Apr 27, 2023
be00e7c
chore(release): update API docs [ci skip]
Apr 27, 2023
c682c5e
feat(core): Use lerna prepublishOnly version npm publish and use the …
stocaaro May 1, 2023
d53501e
feat(aws-amplify): Bump the aws-amplify minor version (#11327)
stocaaro May 3, 2023
3ca1913
DataStore unit tests for observed rapid single-field mutations with v…
david-mcafee May 4, 2023
9cbc56a
release(required): Amplify JS release (#11339)
cshfang May 4, 2023
ba56073
chore(release): Publish [ci skip]
May 4, 2023
f7c8974
chore(release): update API docs [ci skip]
May 4, 2023
50cb189
chore: Add NPM duplicate dependency check to canaries (#11333)
jimblanc May 4, 2023
eca5078
feature: Enable rollback infrastructure (#11332)
jimblanc May 4, 2023
1603af3
feat(core): refactor signer implementation to remove polyfill (#11319)
AllanZhengYP May 5, 2023
06dae62
feat: Add Snyk security scanning (#11285)
stocaaro May 8, 2023
c07e253
chore: Fixed NextJS canary configuration (#11356)
jimblanc May 10, 2023
1b3a4bb
feat(data): refactor single-client consecutive update unit tests; fak…
david-mcafee May 11, 2023
720ac60
fix(core): add URL polyfill for signer in react native (#11362)
AllanZhengYP May 11, 2023
999f7b1
release: Amplify JS release (#11366)
Samaritan1011001 May 11, 2023
6649dd6
chore(release): Publish [ci skip]
May 12, 2023
a410950
chore(release): update API docs [ci skip]
May 12, 2023
926d1ef
Merge remote-tracking branch 'upstream/main' into v5/custom-clients
AllanZhengYP May 16, 2023
a2c3f49
chore: update size limit
AllanZhengYP May 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 22 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1592,15 +1592,25 @@ jobs:
- amplify-ssh-deps-{{ .Branch }}
- amplify-ssh-deps
- run:
name: 'Post-release steps'
name: 'Update roll-back infrastructure'
command: |
git config --global user.email $GITHUB_EMAIL
git config --global user.name $GITHUB_USER
git pull origin release
yarn workspace @aws-amplify/core build
git add ./packages/core/src/Platform/version.ts
git commit -m "chore(release): update version.ts [ci skip]"
PUBLISH_COMMIT_HASH=$(git log -n 1 --pretty=format:"%H")
RELEASE_COMMIT_MESSAGE=$(git log -n 1 --skip 1 --pretty=oneline)
if [[ $RELEASE_COMMIT_MESSAGE = *release\(required\)* ]]; then git tag -f required-release $PUBLISH_COMMIT_HASH; fi
- run:
name: 'Update API documentation'
command: |
yarn run docs
git add ./docs/api/
git commit -m "chore(release): update API docs [ci skip]"
- run:
name: 'Push post release changes'
command: |
git push origin release
git push -f origin required-release
git push --force-with-lease origin release:main

# Specifies the branches that can be considered releasable.
Expand Down Expand Up @@ -2325,16 +2335,18 @@ workflows:
- getting-started-smoke-test/web:
name: Next.js - latest
npx-command: create-next-app
npx-post: --use-npm --ts --tailwind --no-eslint --no-src-dir --no-app --import-alias "@/*"`
framework: nextjs
main-file-path: pages/_app.js
main-file-path: pages/_app.tsx
dev-start: dev
build-dir: build
ssr: true
- getting-started-smoke-test/web:
name: Next.js - next
npx-command: create-next-app@canary
npx-post: --use-npm --ts --tailwind --no-eslint --no-src-dir --no-app --import-alias "@/*"`
framework: nextjs
main-file-path: pages/_app.js
main-file-path: pages/_app.tsx
dev-start: dev
build-dir: build
ssr: true
Expand Down Expand Up @@ -2510,7 +2522,10 @@ orbs:
no_output_timeout: 2m
- run-with-retry:
label: Install AmplifyJS
command: npm i -S aws-amplify && npm i -g wait-on serve
command: |
npm i -S aws-amplify
npm i -g wait-on serve
~/amplify-js/.circleci/duplicates-npm.sh
- run:
name: Call Amplify library in code
command: |
Expand Down
17 changes: 17 additions & 0 deletions .circleci/duplicates-npm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

# This script detects duplicated Amplify dependencies in the dependency graph (with NPM)
duplicatedDependencies=$(
npm ls -all 2>/dev/null | \
grep -o -e '@\?aws-amplify[^ ]*' | \
sort | uniq | \
sed -E 's/^(@?[^@]+).*$/\1/g' | \
uniq -d | sort
)

if [ ! "$duplicatedDependencies" ]; then
echo "No duplicated Amplify dependencies detected."
else
echo "Duplicated Amplify dependencies detected: $duplicatedDependencies"
false
fi
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/1.bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ body:
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `amazon-cognito-identity-js` | [![version](https://img.shields.io/npm/v/amazon-cognito-identity-js/latest.svg)](https://www.npmjs.com/package/amazon-cognito-identity-js) |
| `aws-amplify` | [![version](https://img.shields.io/npm/v/aws-amplify/latest.svg)](https://www.npmjs.com/package/aws-amplify) |
| `aws-amplify-angular` | [![version](https://img.shields.io/npm/v/aws-amplify-angular/latest.svg)](https://www.npmjs.com/package/aws-amplify-angular) |
| `aws-amplify-react` | [![version](https://img.shields.io/npm/v/aws-amplify-react/latest.svg)](https://www.npmjs.com/package/aws-amplify-react) |
| `aws-amplify-react-native` | [![version](https://img.shields.io/npm/v/aws-amplify-react-native/latest.svg)](https://www.npmjs.com/package/aws-amplify-react-native) |
| `aws-amplify-vue` | [![version](https://img.shields.io/npm/v/aws-amplify-vue/latest.svg)](https://www.npmjs.com/package/aws-amplify-vue) |
| `@aws-amplify/analytics` | [![version](https://img.shields.io/npm/v/@aws-amplify/analytics/latest.svg)](https://www.npmjs.com/package/@aws-amplify/analytics) |
| `@aws-amplify/api` | [![version](https://img.shields.io/npm/v/@aws-amplify/api/latest.svg)](https://www.npmjs.com/package/@aws-amplify/api) |
| `@aws-amplify/api-graphql` | [![version](https://img.shields.io/npm/v/@aws-amplify/api-graphql/latest.svg)](https://www.npmjs.com/package/@aws-amplify/api-graphql) |
Expand All @@ -38,12 +35,6 @@ body:
| `@aws-amplify/pubsub` | [![version](https://img.shields.io/npm/v/@aws-amplify/pubsub/latest.svg)](https://www.npmjs.com/package/@aws-amplify/pubsub) |
| `@aws-amplify/pushnotification` | [![version](https://img.shields.io/npm/v/@aws-amplify/pushnotification/latest.svg)](https://www.npmjs.com/package/@aws-amplify/pushnotification) |
| `@aws-amplify/storage` | [![version](https://img.shields.io/npm/v/@aws-amplify/storage/latest.svg)](https://www.npmjs.com/package/@aws-amplify/storage) |
| `@aws-amplify/ui` | [![version](https://img.shields.io/npm/v/@aws-amplify/ui/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui) |
| `@aws-amplify/ui-angular` | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-angular/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-angular) |
| `@aws-amplify/ui-components` | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-components/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-components) |
| `@aws-amplify/ui-react` | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-react/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-react) |
| `@aws-amplify/ui-vue` | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-vue/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-vue) |
| `@aws-amplify/xr` | [![version](https://img.shields.io/npm/v/@aws-amplify/xr/latest.svg)](https://www.npmjs.com/package/@aws-amplify/xr) |

</details>

Expand Down Expand Up @@ -118,7 +109,6 @@ body:
- notifications
- interactions
- predictions
- xr
- Not applicable
- type: textarea
attributes:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/issue-pending-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: issue-pending-response
on:
issue_comment:
types: [created]
permissions:
issues: write
jobs:
issue_commented:
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'pending-response') }}
runs-on: ubuntu-latest
steps:
- uses: siegerts/pending-author-response@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pending-response-label: pending-response
36 changes: 36 additions & 0 deletions .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Snyk Security'

on:
push:
branches: ['release']
schedule:
- cron: '0 0 * * *' # run daily at midnight GMT

permissions:
contents: read

jobs:
snyk:
if: github.repository == 'aws-amplify/amplify-js'
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Snyk CLI to check for security issues
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb
- name: Build
run: yarn install || true
# Using `|| true` to not fail the pipeline
- name: Snyk test
env:
SNYK_TOKEN: ${{secrets.SNYK_TOKEN}}
run: snyk test --sarif | tee snyk-code.sarif # || true

# Push the Snyk Code results into GitHub Code Scanning tab
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk-code.sarif
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ package-lock.json
packages/*/.watchmanconfig
dual-publish-tmp

### Version file - core build artifact
packages/core/src/Platform/version.ts

### Gradle ###
.gradle/
local.properties
Expand Down
4 changes: 2 additions & 2 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GEM
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.23.8)
commonmarker (0.23.9)
concurrent-ruby (1.2.2)
dnsruby (1.61.9)
simpleidn (~> 0.1)
Expand Down Expand Up @@ -211,7 +211,7 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.18.0)
nokogiri (1.13.10)
nokogiri (1.14.3)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
octokit (4.25.1)
Expand Down
3 changes: 2 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
#
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
Expand Down Expand Up @@ -341,4 +342,4 @@ js_libraries:
- title: Ionic
url: '?platform=ionic'
- title: JavaScript
url: '?platform=purejs'
url: '?platform=purejs'
6 changes: 3 additions & 3 deletions docs/amplify-theme/_includes/site-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
{% if page.keywords %}
<meta name="keywords" content="{{ page.keywords }}">
{% endif %}
<link rel="icon" htype="image/png" href="{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/images/layout/favicon.png">
<link rel='apple-touch-icon' type='image/png' href='{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/images/layout/favicon.png'> <!-- iPhone -->
<link rel="icon" htype="image/png" href="{% if jekyll.environment == 'production' %}{{ site.amplify.docs_baseurl }}{% endif %}/images/layout/favicon.png">
<link rel='apple-touch-icon' type='image/png' href='{% if jekyll.environment == 'production' %}{{ site.amplify.docs_baseurl }}{% endif %}/images/layout/favicon.png'> <!-- iPhone -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,500,500i,700,700i|Noto+Sans:400,400i,700,700i|Source+Code+Pro&amp;subset=latin-ext">
<link rel="stylesheet" href="{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/amplify-theme/assets/css/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
6 changes: 3 additions & 3 deletions docs/amplify-theme/_includes/site-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
{% if site.amplify.header.logo.text %}
<div class="logo-container" id="logo-container">
<a href="{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/" class="site-header__logo">
<img src="{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/images/layout/logo.png">
<img src="{% if jekyll.environment == 'production' %}{{ site.amplify.docs_baseurl }}{% endif %}/images/layout/logo.png">
<p class="header-amplify">{{ site.amplify.header.logo.text }} </p>
</a>
</div>
{% elsif site.amplify.header.logo.image %}
<a href="{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/" class="site-header__logo">
<img src="{% if jekyll.environment == 'production' %}{{ site.amplify.baseurl }}{% endif %}/images/layout/logo.png">
<img src="{% if jekyll.environment == 'production' %}{{ site.amplify.docs_baseurl }}{% endif %}/images/layout/logo.png">
</a><!-- /.site-header__logo -->
{% endif %}
{% if site.amplify.header.nav %}
Expand Down Expand Up @@ -152,4 +152,4 @@

setBackgroundImage();
</script>
{% endif %}
{% endif %}
1 change: 1 addition & 0 deletions docs/amplify-theme/typedoc/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<title>{{model.name}} | {{project.name}}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="https://aws-amplify.github.io/amplify-js/images/layout/favicon.ico">
<style type="text/css">/*! normalize.css v1.1.3 | MIT License | git.io/normalize */
/* ========================================================================== HTML5 display definitions ========================================================================== */
/** Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. */
Expand Down
6 changes: 3 additions & 3 deletions docs/amplify-theme/typedoc/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<div class="table-wrap">
<div class="table-cell logo">
<a href="{{relativeURL "index.html"}}">
<img src="https://aws-amplify.github.io/images/layout/logo.png" style="width:38px; position: absolute; margin-top: 5px;">
<div style="margin-left: 45px; padding-top: 1px; position: absolute;">AWS Amplify API</div>
<img src="https://aws-amplify.github.io/amplify-js/images/layout/logo.png" style="width:38px; position: absolute; margin-top: 5px;">
<div style="margin-left: 45px; padding-top: 1px; position: relative;">AWS Amplify JS API</div>
</a>
</div>
<div class="table-cell" style=""> <body>
<a href="/amplify-js/" style='background: #efefef; padding: 4px; border-radius: 20px; font-size: 14.5px; padding-left: 10px; padding-right: 10px;' for="tsd-filter-docs">AWS Amplify Home</a>
<a href="https://docs.amplify.aws/lib/q/platform/js/" style='background: #efefef; padding: 4px; border-radius: 20px; font-size: 14.5px; padding-left: 10px; padding-right: 10px;' for="tsd-filter-docs">AWS Amplify JS Dev Center</a>
</div> </body>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
Expand Down
Loading