Skip to content

Commit 750bb0f

Browse files
authored
Merge pull request #66 from firebase/next
November 7, 2019 Release
2 parents f01cf23 + 75cfd53 commit 750bb0f

File tree

148 files changed

+5531
-1808
lines changed

Some content is hidden

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

148 files changed

+5531
-1808
lines changed

.prettierignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
package.json
22
extension.yaml
3-
webpack.config.js
3+
package-lock.json
4+
45
**/node_modules/**
56

67
# generated files
78
README.md
8-
POSTINSTALL.md
9-
PREINSTALL.md
109
**/functions/lib/**
1110
**/dist/**
11+
12+
# extension install md files
13+
# - excluded as prettier escapes variables e.g. `${PROJECT_ID}` becomes `\${PROJECT_ID}`
14+
POSTINSTALL.md
15+
PREINSTALL.md

.prettierrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
trailingComma: es5
1616
arrowParens: always
1717
overrides:
18-
- files: "*.yaml"
18+
- files: "*.{yml,yaml}"
1919
options:
2020
proseWrap: always

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: node_js
2+
3+
node_js:
4+
- 8
5+
- 10
6+
- 12
7+
8+
stages:
9+
- validate
10+
- test
11+
12+
jobs:
13+
include:
14+
- stage: validate
15+
name: "TypeScript Compile"
16+
script: npm run clean && npm run build
17+
- stage: validate
18+
name: "Prettier Format Check"
19+
script: npm run lint
20+
- stage: test
21+
script: npm run test-coverage

auth-mailchimp-sync/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
# auth-mailchimp-sync
1+
# Sync with Mailchimp
22

3-
**VERSION**: 0.1.0
3+
**Description**: Adds new users from Firebase Authentication to a specified Mailchimp audience.
44

5-
**DESCRIPTION**: Adds new users from Firebase Authentication to a specified Mailchimp audience.
65

76

7+
**Details**: Use this extension to add new users to an existing [Mailchimp](https://mailchimp.com) audience.
88

9-
**CONFIGURATION PARAMETERS:**
9+
This extension adds the email address of each new user to your specified Mailchimp audience. Also, if the user deletes their user account for your app, this extension removes the user from the Mailchimp audience.
1010

11-
* Deployment location: Where should the extension be deployed? For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
11+
**Note:** To use this extension, you need to manage your users with Firebase Authentication.
1212

13-
* Mailchimp API key: What is your Mailchimp API key? To obtain a Mailchimp API key, go to your [Mailchimp account](https://admin.mailchimp.com/account/api/).
13+
This extension uses Mailchimp, so you'll need to supply your Mailchimp API Key and Audience ID when installing this extension.
1414

15-
* Audience ID: What is the Mailchimp Audience ID to which you want to subscribe new users? To find your Audience ID: visit https://admin.mailchimp.com/lists, click on the desired audience or create a new audience, then select **Settings**. Look for **Audience ID** (for example, `27735fc60a`).
15+
#### Additional setup
1616

17-
* Contact status: When the extension adds a new user to the Mailchimp audience, what is their initial status? This value can be `subscribed` or `pending`. `subscribed` means the user can receive campaigns; `pending` means the user still needs to opt-in to receive campaigns.
17+
Make sure that you've set up [Firebase Authentication](https://firebase.google.com/docs/auth) to manage your users.
1818

19+
You must also have a Mailchimp account before installing this extension.
1920

21+
#### Billing
2022

21-
**CLOUD FUNCTIONS CREATED:**
23+
This extension uses other Firebase or Google Cloud Platform services which may have associated charges:
2224

23-
* addUserToList (providers/firebase.auth/eventTypes/user.create)
25+
- Firebase Realtime Database
26+
- Cloud Functions
2427

25-
* removeUserFromList (providers/firebase.auth/eventTypes/user.delete)
28+
When you use Firebase Extensions, you're only charged for the underlying resources that you use. A paid-tier billing plan is only required if the extension uses a service that requires a paid-tier plan, for example calling to a Google Cloud Platform API or making outbound network requests to non-Google services. All Firebase services offer a free tier of usage. [Learn more about Firebase billing.](https://firebase.google.com/pricing)
2629

30+
Usage of this extension also requires you to have a Mailchimp account. You are responsible for any associated costs with your usage of Mailchimp.
2731

2832

29-
**DETAILS**: Use this extension to add new users to an existing [Mailchimp](https://mailchimp.com) audience.
3033

31-
This extension adds the email address of each new user to your specified Mailchimp audience. Also, if the user deletes their user account for your app, this extension removes the user from the Mailchimp audience.
3234

33-
**Note:** To use this extension, you need to manage your users with Firebase Authentication.
3435

35-
This extension uses Mailchimp, so you'll need to supply your Mailchimp API Key and Audience ID when installing this extension.
36+
**Configuration Parameters:**
3637

37-
#### Additional setup
38+
* Deployment location: Where should the extension be deployed? For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
3839

39-
Make sure that you've set up [Firebase Authentication](https://firebase.google.com/docs/auth) to manage your users.
40+
* Mailchimp API key: What is your Mailchimp API key? To obtain a Mailchimp API key, go to your [Mailchimp account](https://admin.mailchimp.com/account/api/).
4041

41-
You must also have a Mailchimp account before installing this extension.
42+
* Audience ID: What is the Mailchimp Audience ID to which you want to subscribe new users? To find your Audience ID: visit https://admin.mailchimp.com/lists, click on the desired audience or create a new audience, then select **Settings**. Look for **Audience ID** (for example, `27735fc60a`).
4243

43-
#### Billing
44+
* Contact status: When the extension adds a new user to the Mailchimp audience, what is their initial status? This value can be `subscribed` or `pending`. `subscribed` means the user can receive campaigns; `pending` means the user still needs to opt-in to receive campaigns.
4445

45-
This extension uses other Firebase or Google Cloud Platform services which may have associated charges:
4646

47-
- Firebase Realtime Database
48-
- Cloud Functions
4947

50-
When you use Firebase Extensions, you're only charged for the underlying resources that you use. A paid-tier billing plan is only required if the extension uses a service that requires a paid-tier plan, for example calling to a Google Cloud Platform API or making outbound network requests to non-Google services. All Firebase services offer a free tier of usage. [Learn more about Firebase billing.](https://firebase.google.com/pricing)
48+
**Cloud Functions:**
5149

52-
Usage of this extension also requires you to have a Mailchimp account. You are responsible for any associated costs with your usage of Mailchimp.
50+
* **addUserToList:** Listens for new user accounts (as managed by Firebase Authentication), then automatically adds the new user to your specified MailChimp audience.
51+
52+
* **removeUserFromList:** Listens for existing user accounts to be deleted (as managed by Firebase Authentication), then automatically removes them from your specified MailChimp audience.

auth-mailchimp-sync/extension.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ description:
2323
license: Apache-2.0
2424
billingRequired: true
2525
sourceUrl: https://github.com/firebase/extensions/tree/master/auth-mailchimp-sync
26-
releaseNotesUrl: https://github.com/firebase/extensions/commits/master
26+
releaseNotesUrl: https://github.com/firebase/extensions/releases
2727

2828
author:
2929
authorName: Firebase

auth-mailchimp-sync/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ module.exports = {
66
rootDir: "./",
77
preset: "ts-jest",
88
globalSetup: "./jest.setup.js",
9-
globalTeardown: "./jest.teardown.js"
9+
globalTeardown: "./jest.teardown.js",
1010
};
11-
12-

auth-mailchimp-sync/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auth-mailchimp-sync/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "auth-mailchimp-sync",
3-
"version": "0.1.0",
43
"description": "Add new users to a Mailchimp list, and delete them from the list when they delete their account.",
54
"main": "functions/lib/index.js",
65
"scripts": {
@@ -19,5 +18,6 @@
1918
"devDependencies": {
2019
"rimraf": "^2.6.3",
2120
"typescript": "^3.2.4"
22-
}
21+
},
22+
"private": true
2323
}

auth-mailchimp-sync/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
"compilerOptions": {
44
"outDir": "functions/lib"
55
},
6-
"include": [
7-
"functions/src"
8-
]
6+
"include": ["functions/src"]
97
}

delete-user-data/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Version 0.1.2
2+
3+
feature - Add a new param for recursively deleting subcollections in Cloud Firestore (issue #14).
4+
fixed - Fixed "cold start" errors experienced when the extension runs after a period of inactivity (issue #48).

0 commit comments

Comments
 (0)