Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay authored Dec 2, 2020
2 parents 997d110 + 4d0a2e3 commit 0237962
Show file tree
Hide file tree
Showing 67 changed files with 849 additions and 167 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ datastore_auth_scenarios: &datastore_auth_scenarios
public-auth-default,
public-auth-iam,
owner-custom-claim-default,
owner-custom-field-default,
]

workflows:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ If you can't migrate to [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) or
- [**Analytics**](https://docs.amplify.aws/lib/analytics/getting-started/q/platform/js): Easily collect analytics data for your app. Analytics data includes user sessions and other custom events that you want to track in your app.
- [**REST API**](https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js): Provides a simple solution when making HTTP requests. It provides an automatic, lightweight signing process which complies with AWS Signature Version 4.
- [**GraphQL API**](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js): Interact with your GraphQL server or AWS AppSync API with an easy-to-use & configured GraphQL client.
- [**DataStore**](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js): A programming model for leveraging shared and distributed data without writing additional code for offline and online scenarios, which makes working with distributed, cross-user data just as simple as working with local-only data.
- [**Storage**](https://docs.amplify.aws/lib/storage/getting-started/q/platform/js): Provides a simple mechanism for managing user content for your app in public, protected or private storage buckets.
- [**Push Notifications**](https://docs.amplify.aws/lib/push-notifications/getting-started/q/platform/js): Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
- [**Interactions**](https://docs.amplify.aws/lib/interactions/getting-started/q/platform/js#interactions-with-aws): Create conversational bots powered by deep learning technologies.
Expand Down
8 changes: 8 additions & 0 deletions packages/amplify-ui-angular/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.4.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/ui-angular





## [0.4.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/ui-angular
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-ui-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/ui-angular",
"version": "0.4.13",
"version": "0.4.14",
"description": "Angular specific wrapper for @aws-amplify/ui-components",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -31,7 +31,7 @@
"dist/"
],
"dependencies": {
"@aws-amplify/ui-components": "0.9.5"
"@aws-amplify/ui-components": "0.9.6"
},
"devDependencies": {
"@angular/compiler-cli": "^7.2.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/amplify-ui-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.9.6](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/ui-components





## [0.9.5](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/ui-components
Expand Down
12 changes: 6 additions & 6 deletions packages/amplify-ui-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/ui-components",
"version": "0.9.5",
"version": "0.9.6",
"description": "Core Amplify UI Component Library",
"module": "dist/index.mjs",
"main": "dist/index.js",
Expand Down Expand Up @@ -35,11 +35,11 @@
"clean": "rimraf dist .stencil"
},
"dependencies": {
"@aws-amplify/auth": "3.4.13",
"@aws-amplify/core": "3.8.5",
"@aws-amplify/interactions": "3.3.13",
"@aws-amplify/storage": "3.3.13",
"@aws-amplify/xr": "2.2.13",
"@aws-amplify/auth": "3.4.14",
"@aws-amplify/core": "3.8.6",
"@aws-amplify/interactions": "3.3.14",
"@aws-amplify/storage": "3.3.14",
"@aws-amplify/xr": "2.2.14",
"qrcode": "^1.4.4",
"uuid": "^8.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-ui-components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const config: Config = {
}),
nodePolyfills(),
sass({
injectGlobalPaths: [['src/global/breakpoint.scss', '*']],
injectGlobalPaths: ['src/global/breakpoint.scss'],
}),
],
nodeResolve: {
Expand Down
8 changes: 8 additions & 0 deletions packages/amplify-ui-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.2.31](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/ui-react





## [0.2.30](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/ui-react
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-ui-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aws-amplify/ui-react",
"sideEffects": false,
"version": "0.2.30",
"version": "0.2.31",
"description": "React specific wrapper for @aws-amplify/ui-components",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -32,7 +32,7 @@
"typescript": "^3.3.4000"
},
"dependencies": {
"@aws-amplify/ui-components": "0.9.5"
"@aws-amplify/ui-components": "0.9.6"
},
"peerDependencies": {
"react": "^16.7.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/amplify-ui-react/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ module.exports = {
},
],
},
node: {
fs: 'empty',
},
};
8 changes: 8 additions & 0 deletions packages/amplify-ui-storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.2.31](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/ui-storybook





## [0.2.30](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/ui-storybook
Expand Down
6 changes: 3 additions & 3 deletions packages/amplify-ui-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@aws-amplify/ui-storybook",
"version": "0.2.30",
"version": "0.2.31",
"private": true,
"dependencies": {
"@aws-amplify/ui-react": "0.2.30",
"@aws-amplify/ui-react": "0.2.31",
"@storybook/addon-knobs": "^5.3.13",
"@storybook/theming": "^5.3.14",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"aws-amplify": "3.3.10",
"aws-amplify": "3.3.11",
"react": "^16.12.0",
"react-app-polyfill": "^1.0.6",
"react-dom": "^16.12.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/amplify-ui-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.2.30](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/ui-vue





## [0.2.29](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/ui-vue
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-ui-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aws-amplify/ui-vue",
"sideEffects": true,
"version": "0.2.29",
"version": "0.2.30",
"description": "Vue specific wrapper for @aws-amplify/ui-components",
"publishConfig": {
"access": "public"
Expand All @@ -17,7 +17,7 @@
"url": "https://github.com/aws-amplify/amplify-js.git"
},
"dependencies": {
"@aws-amplify/ui-components": "0.9.5"
"@aws-amplify/ui-components": "0.9.6"
},
"scripts": {
"build": "npm run clean && npm run compile",
Expand Down
11 changes: 11 additions & 0 deletions packages/analytics/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)


### Bug Fixes

* **@aws-amplify/analytics:** send events when autoSessionRecord is disabled ([#7308](https://github.com/aws-amplify/amplify-js/issues/7308)) ([039aa95](https://github.com/aws-amplify/amplify-js/commit/039aa95f9a3e791f09d7566bd7baecf68c7c8cb6))





## [4.0.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/analytics
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/analytics",
"version": "4.0.1",
"version": "4.0.2",
"description": "Analytics category of aws-amplify",
"main": "./lib/index.js",
"module": "./lib-esm/index.js",
Expand Down Expand Up @@ -43,8 +43,8 @@
},
"homepage": "https://aws-amplify.github.io/",
"dependencies": {
"@aws-amplify/cache": "3.1.38",
"@aws-amplify/core": "3.8.5",
"@aws-amplify/cache": "3.1.39",
"@aws-amplify/core": "3.8.6",
"@aws-sdk/client-firehose": "1.0.0-rc.4",
"@aws-sdk/client-kinesis": "1.0.0-rc.4",
"@aws-sdk/client-personalize-events": "1.0.0-rc.4",
Expand Down
11 changes: 6 additions & 5 deletions packages/analytics/src/Analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ export class AnalyticsClass {
this._disabled = true;
}

// turn on the autoSessionRecord if not specified
if (this._config['autoSessionRecord'] === undefined) {
this._config['autoSessionRecord'] = true;
}

this._pluggables.forEach(pluggable => {
// for backward compatibility
const providerConfig =
Expand All @@ -109,6 +114,7 @@ export class AnalyticsClass {

pluggable.configure({
disabled: this._config['disabled'],
autoSessionRecord: this._config['autoSessionRecord'],
...providerConfig,
});
});
Expand All @@ -117,11 +123,6 @@ export class AnalyticsClass {
this.addPluggable(new AWSPinpointProvider());
}

// turn on the autoSessionRecord if not specified
if (this._config['autoSessionRecord'] === undefined) {
this._config['autoSessionRecord'] = true;
}

dispatchAnalyticsEvent(
'configured',
null,
Expand Down
4 changes: 4 additions & 0 deletions packages/analytics/src/Providers/AWSPinpointProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export class AWSPinpointProvider implements AnalyticsProvider {
const conf = config || {};
this._config = Object.assign({}, this._config, conf);

// If autoSessionRecord is enabled, we need to wait for the endpoint to be
// updated before sending any events. See `sendEvents` in `Analytics.ts`
this._endpointGenerating = !!config['autoSessionRecord'];

if (this._config.appId && !this._config.disabled) {
if (!this._config.endpointId) {
const cacheKey = this.getProviderName() + '_' + this._config.appId;
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/src/types/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface PromiseHandlers {
}

export interface AnalyticsProvider {
// you need to implement those methods
// you need to implement those methods

// configure your provider
configure(config: object): object;
Expand Down
8 changes: 8 additions & 0 deletions packages/api-graphql/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/api-graphql





## [1.2.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)

**Note:** Version bump only for package @aws-amplify/api-graphql
Expand Down
12 changes: 6 additions & 6 deletions packages/api-graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/api-graphql",
"version": "1.2.13",
"version": "1.2.14",
"description": "Api-graphql category of aws-amplify",
"main": "./lib/index.js",
"module": "./lib-esm/index.js",
Expand Down Expand Up @@ -44,11 +44,11 @@
"@types/zen-observable": "^0.8.0"
},
"dependencies": {
"@aws-amplify/api-rest": "1.2.13",
"@aws-amplify/auth": "3.4.13",
"@aws-amplify/cache": "3.1.38",
"@aws-amplify/core": "3.8.5",
"@aws-amplify/pubsub": "3.2.11",
"@aws-amplify/api-rest": "1.2.14",
"@aws-amplify/auth": "3.4.14",
"@aws-amplify/cache": "3.1.39",
"@aws-amplify/core": "3.8.6",
"@aws-amplify/pubsub": "3.2.12",
"graphql": "14.0.0",
"uuid": "^3.2.1",
"zen-observable-ts": "0.8.19"
Expand Down
8 changes: 8 additions & 0 deletions packages/api-rest/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-30)

**Note:** Version bump only for package @aws-amplify/api-rest





## [1.2.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/[email protected]...@aws-amplify/[email protected]) (2020-11-23)


Expand Down
4 changes: 2 additions & 2 deletions packages/api-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-amplify/api-rest",
"version": "1.2.13",
"version": "1.2.14",
"description": "Api-rest category of aws-amplify",
"main": "./lib/index.js",
"module": "./lib-esm/index.js",
Expand Down Expand Up @@ -41,7 +41,7 @@
},
"homepage": "https://aws-amplify.github.io/",
"dependencies": {
"@aws-amplify/core": "3.8.5",
"@aws-amplify/core": "3.8.6",
"axios": "0.19.0"
},
"jest": {
Expand Down
Loading

0 comments on commit 0237962

Please sign in to comment.