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

release(required): Amplify JS release #14027

Merged
merged 7 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/packages/geo @aws-amplify/amplify-js @aws-amplify/amplify-ui
/packages/pubsub @aws-amplify/amplify-js @aws-amplify/amplify-data
/packages/aws-amplify/package.json @aws-amplify/amplify-js-admins
/packages/storage/src/storageBrowser @aws-amplify/amplify-js @aws-amplify/amplify-ui
/packages/storage/storage-browser @aws-amplify/amplify-js @aws-amplify/amplify-ui
/.circleci/ @aws-amplify/amplify-js @aws-amplify/amplify-devops
/.github/ @aws-amplify/amplify-js-admins

Expand Down
14 changes: 14 additions & 0 deletions .github/integ-config/integ-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,13 @@ tests:
sample_name: [multi-part-copy]
spec: multi-part-copy
browser: *minimal_browser_list
- test_name: integ_react_storage_browser
desc: 'React Storage Browser'
framework: vite
category: storage
sample_name: [storage-browser]
spec: storage-browser
browser: *minimal_browser_list

# GEN2 STORAGE
- test_name: integ_react_storage
Expand All @@ -836,6 +843,13 @@ tests:
sample_name: [storage-gen2]
spec: storage-gen2
browser: *minimal_browser_list
- test_name: integ_react_storage_internal
desc: 'React Storage Gen2 Internal APIs'
framework: react
category: storage
sample_name: [storage-gen2-internal]
spec: storage-gen2-internal
browser: *minimal_browser_list
- test_name: integ_next_storage
desc: 'Next Storage Auth'
framework: next
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/callable-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ env:
CYPRESS_GOOGLE_CLIENTID: ${{ secrets.CYPRESS_GOOGLE_CLIENTID }}
CYPRESS_GOOGLE_CLIENT_SECRET: ${{ secrets.CYPRESS_GOOGLE_CLIENT_SECRET }}
CYPRESS_GOOGLE_REFRESH_TOKEN: ${{ secrets.CYPRESS_GOOGLE_REFRESH_TOKEN }}
CYPRESS_AUTH0_CLIENTID: ${{ secrets.CYPRESS_AUTH0_CLIENTID }}
CYPRESS_AUTH0_SECRET: ${{ secrets.CYPRESS_AUTH0_SECRET }}
CYPRESS_AUTH0_AUDIENCE: ${{ secrets.CYPRESS_AUTH0_AUDIENCE }}
CYPRESS_AUTH0_DOMAIN: ${{ secrets.CYPRESS_AUTH0_DOMAIN }}

jobs:
e2e-test:
Expand Down
2 changes: 1 addition & 1 deletion docs/api/assets/navigation.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/api/assets/search.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ import tsParser from '@typescript-eslint/parser';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

import customClientDtsBundlerConfig from './scripts/dts-bundler/dts-bundler.config.js';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
const customClientDtsFiles = customClientDtsBundlerConfig.entries
.map(clientBundlerConfig => clientBundlerConfig.outFile)
.filter(outFile => outFile?.length > 0)
.map(outFile => outFile.replace(__dirname + path.sep, '')) // Convert absolute path to relative path

export default [
{
Expand All @@ -39,6 +45,7 @@ export default [
'packages/interactions/__tests__',
'packages/predictions/__tests__',
'packages/pubsub/__tests__',
...customClientDtsFiles,
],
},
...fixupConfigRules(
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@
"**/glob/minipass": "6.0.2",
"nx": "16.7.0",
"xml2js": "0.5.0",
"tar": "6.2.1"
"tar": "6.2.1",
"**/cross-spawn": "7.0.5"
},
"overrides": {
"tar": "6.2.1"
"tar": "6.2.1",
"cross-spawn": "7.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
"@jest/test-sequencer": "^29.7.0",
"typescript": "5.0.2"
}
}
}
2 changes: 2 additions & 0 deletions packages/aws-amplify/__tests__/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ describe('aws-amplify Exports', () => {
'getUrl',
'isCancelError',
'StorageError',
'DEFAULT_PART_SIZE',
].sort(),
);
});
Expand All @@ -253,6 +254,7 @@ describe('aws-amplify Exports', () => {
'getProperties',
'copy',
'getUrl',
'DEFAULT_PART_SIZE',
].sort(),
);
});
Expand Down
54 changes: 27 additions & 27 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,31 +293,31 @@
"name": "[Analytics] record (Pinpoint)",
"path": "./dist/esm/analytics/index.mjs",
"import": "{ record }",
"limit": "17.5 kB"
"limit": "17.59 kB"
},
{
"name": "[Analytics] record (Kinesis)",
"path": "./dist/esm/analytics/kinesis/index.mjs",
"import": "{ record }",
"limit": "48.74 kB"
"limit": "48.8 kB"
},
{
"name": "[Analytics] record (Kinesis Firehose)",
"path": "./dist/esm/analytics/kinesis-firehose/index.mjs",
"import": "{ record }",
"limit": "45.76 kB"
"limit": "45.85 kB"
},
{
"name": "[Analytics] record (Personalize)",
"path": "./dist/esm/analytics/personalize/index.mjs",
"import": "{ record }",
"limit": "49.58 kB"
"limit": "49.67 kB"
},
{
"name": "[Analytics] identifyUser (Pinpoint)",
"path": "./dist/esm/analytics/index.mjs",
"import": "{ identifyUser }",
"limit": "15.97 kB"
"limit": "16.09 kB"
},
{
"name": "[Analytics] enable",
Expand All @@ -335,7 +335,7 @@
"name": "[API] generateClient (AppSync)",
"path": "./dist/esm/api/index.mjs",
"import": "{ generateClient }",
"limit": "44.1 kB"
"limit": "44.21 kB"
},
{
"name": "[API] REST API handlers",
Expand All @@ -353,43 +353,43 @@
"name": "[Auth] resetPassword (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ resetPassword }",
"limit": "12.57 kB"
"limit": "12.66 kB"
},
{
"name": "[Auth] confirmResetPassword (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ confirmResetPassword }",
"limit": "12.51 kB"
"limit": "12.60 kB"
},
{
"name": "[Auth] signIn (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ signIn }",
"limit": "30.00 kB"
"limit": "28.78 kB"
},
{
"name": "[Auth] resendSignUpCode (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ resendSignUpCode }",
"limit": "12.53 kB"
"limit": "12.61 kB"
},
{
"name": "[Auth] confirmSignUp (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ confirmSignUp }",
"limit": "31.00 kB"
"limit": "29.40 kB"
},
{
"name": "[Auth] confirmSignIn (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ confirmSignIn }",
"limit": "28.39 kB"
"limit": "28.46 kB"
},
{
"name": "[Auth] updateMFAPreference (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ updateMFAPreference }",
"limit": "12.00 kB"
"limit": "12.07 kB"
},
{
"name": "[Auth] fetchMFAPreference (Cognito)",
Expand All @@ -401,13 +401,13 @@
"name": "[Auth] verifyTOTPSetup (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ verifyTOTPSetup }",
"limit": "12.86 kB"
"limit": "12.94 kB"
},
{
"name": "[Auth] updatePassword (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ updatePassword }",
"limit": "12.87 kB"
"limit": "12.96 kB"
},
{
"name": "[Auth] setUpTOTP (Cognito)",
Expand All @@ -419,7 +419,7 @@
"name": "[Auth] updateUserAttributes (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ updateUserAttributes }",
"limit": "12.1 kB"
"limit": "12.19 kB"
},
{
"name": "[Auth] getCurrentUser (Cognito)",
Expand All @@ -431,19 +431,19 @@
"name": "[Auth] confirmUserAttribute (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ confirmUserAttribute }",
"limit": "12.86 kB"
"limit": "12.93 kB"
},
{
"name": "[Auth] signInWithRedirect (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ signInWithRedirect }",
"limit": "21.19 kB"
"limit": "21.21 kB"
},
{
"name": "[Auth] fetchUserAttributes (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ fetchUserAttributes }",
"limit": "11.93 kB"
"limit": "12.01 kB"
},
{
"name": "[Auth] Basic Auth Flow (Cognito)",
Expand All @@ -455,49 +455,49 @@
"name": "[Auth] OAuth Auth Flow (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ signInWithRedirect, signOut, fetchAuthSession }",
"limit": "21.66 kB"
"limit": "21.64 kB"
},
{
"name": "[Storage] copy (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ copy }",
"limit": "15.03 kB"
"limit": "16.39 kB"
},
{
"name": "[Storage] downloadData (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ downloadData }",
"limit": "15.62 kB"
"limit": "16.73 kB"
},
{
"name": "[Storage] getProperties (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ getProperties }",
"limit": "14.89 kB"
"limit": "15.99 kB"
},
{
"name": "[Storage] getUrl (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ getUrl }",
"limit": "16.11 kB"
"limit": "17.22 kB"
},
{
"name": "[Storage] list (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ list }",
"limit": "15.55 kB"
"limit": "16.69 kB"
},
{
"name": "[Storage] remove (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ remove }",
"limit": "14.75 kB"
"limit": "15.83 kB"
},
{
"name": "[Storage] uploadData (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ uploadData }",
"limit": "20.17 kB"
"limit": "22.81 kB"
}
]
}
Loading
Loading