Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: firebase/firebase-admin-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.8.0
Choose a base ref
...
head repository: firebase/firebase-admin-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.9.0
Choose a head ref
  • 15 commits
  • 21 files changed
  • 7 contributors

Commits on May 17, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1454683 View commit details
  2. Copy the full SHA
    a3dbd24 View commit details
  3. Copy the full SHA
    8943d0f View commit details
  4. Copy the full SHA
    de026a1 View commit details

Commits on May 23, 2023

  1. build(deps-dev): bump eslint from 8.40.0 to 8.41.0 (#2189)

    Bumps [eslint](https://github.com/eslint/eslint) from 8.40.0 to 8.41.0.
    - [Release notes](https://github.com/eslint/eslint/releases)
    - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
    - [Commits](eslint/eslint@v8.40.0...v8.41.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 23, 2023
    Copy the full SHA
    1342b45 View commit details
  2. Copy the full SHA
    e2ecef4 View commit details
  3. Copy the full SHA
    ce6b13c View commit details

Commits on May 24, 2023

  1. feat(auth): Add Password Policies support in Project and Tenant config (

    #2107)
    
    * Password Policy Tenant and Project Changes
    - Config changes
    - Basic integration tests
    - Basic unit tests
    
    * Adding unit tests for PasswordPolicyAuthConfig
    + Comment for PasswordPolicyEnforcementState type
    
    * Adding Project Config Unit Tests
    
    * Tenant Unit Tests
    
    * Lint fixes
    
    * `npm run api-extractor:local` changes
    
    * 1. `npm run api-extractor:local` changes
    2. Documentation for some PasswordPolicyConfig interfaces/methods
    
    * Revert formatting changes
    
    * Lint changes
    
    * Line break lint changes
    
    * `eslint --fix .` fixes
    
    * 1. Changing type of passwordPolicies to PasswordPolicyConfig on Tenant and ProjectConfig
    2. Removing toJSON() method from PasswordPolicyAuthConfig
    3. Marking PasswordPolicyAuthConfig as `internal`
    
    * Minor changes
    
    * Changes with approved config
    
    * Undo package-lock.json changes
    
    * Undo package-lock.json changes
    
    * Undo package-lock.json changes
    
    * Update package-lock.json
    
    * Lint fixes
    
    * Cleanup
    
    * Revert package-lock.json
    
    * Update project-config.ts
    
    * Minor formatting
    
    * Descriptive constants
    
    * Lint fixes
    
    * Fix import
    
    * Update test/integration/auth.spec.ts
    
    Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
    
    * Apply suggestions from code review
    
    Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
    
    * Apply suggestions from code review
    
    Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
    
    * Integration tests fix
    
    * Small fix
    
    * Reset password policy in integration tests to prevent breaking changes
    
    * lint fix
    
    * package-lock.json undo changes
    
    * update merge
    
    * lint fixes
    
    * merge fixes
    
    * Update package-lock.json
    
    * Update package.json
    
    * Allow enforcementState `OFF` with default constraints
    
    * Lint fixes
    
    * Adding recaptcha to server request
    
    * Fill default passwordPolicyVersions values
    
    * Lint fix
    
    * remove debug logging
    
    ---------
    
    Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
    Co-authored-by: Kevin Cheung <kevinthecheung@users.noreply.github.com>
    3 people authored May 24, 2023
    Copy the full SHA
    c87f8a5 View commit details
  2. fix(firestore): Export Filter type from Firestore (#2192)

    Co-authored-by: Dan Reynolds <me@danreynolds.ca>
    jhuleatt and danReynolds authored May 24, 2023
    Copy the full SHA
    52904f6 View commit details
  3. Copy the full SHA
    d563011 View commit details

Commits on May 26, 2023

  1. chore: Upgrade Firestore to v6.6.0 (#2193)

    - Upgrade Firestore to v6.6.0 to support `FIRESTORE_PREFER_REST` environment variable
    lahirumaramba authored May 26, 2023
    Copy the full SHA
    d250310 View commit details

Commits on May 30, 2023

  1. build(deps-dev): bump @types/firebase-token-generator (#2201)

    Bumps [@types/firebase-token-generator](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/firebase-token-generator) from 2.0.29 to 2.0.30.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/firebase-token-generator)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/firebase-token-generator"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 30, 2023
    Copy the full SHA
    22be7ed View commit details
  2. Copy the full SHA
    d17e47c View commit details
  3. Copy the full SHA
    2335bed View commit details
  4. [chore] Release 11.9.0 (#2196)

    - Release 11.9.0
    lahirumaramba authored May 30, 2023
    Copy the full SHA
    2cff5b2 View commit details
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -28,6 +28,6 @@ jobs:
run: npm run api-extractor
- name: Run emulator-based integration tests
run: |
npm install -g firebase-tools
npm install -g firebase-tools@11.30.0
firebase emulators:exec --project fake-project-id --only auth,database,firestore \
'npx mocha \"test/integration/{auth,database,firestore}.spec.ts\" --slow 5000 --timeout 20000 --require ts-node/register'
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ jobs:

- name: Run emulator-based integration tests
run: |
npm install -g firebase-tools
npm install -g firebase-tools@11.30.0
firebase emulators:exec --project fake-project-id --only auth,database,firestore \
'npx mocha \"test/integration/{auth,database,firestore}.spec.ts\" --slow 5000 --timeout 20000 --require ts-node/register'
1 change: 1 addition & 0 deletions etc/firebase-admin.api.md
Original file line number Diff line number Diff line change
@@ -255,6 +255,7 @@ export namespace firestore {
import DocumentSnapshot = _firestore.DocumentSnapshot;
import FieldPath = _firestore.FieldPath;
import FieldValue = _firestore.FieldValue;
import Filter = _firestore.Filter;
import Firestore = _firestore.Firestore;
import FirestoreDataConverter = _firestore.FirestoreDataConverter;
import GeoPoint = _firestore.GeoPoint;
24 changes: 24 additions & 0 deletions etc/firebase-admin.auth.api.md
Original file line number Diff line number Diff line change
@@ -138,6 +138,16 @@ export interface CreateRequest extends UpdateRequest {
// @public
export type CreateTenantRequest = UpdateTenantRequest;

// @public
export interface CustomStrengthOptionsConfig {
maxLength?: number;
minLength?: number;
requireLowercase?: boolean;
requireNonAlphanumeric?: boolean;
requireNumeric?: boolean;
requireUppercase?: boolean;
}

// @alpha (undocumented)
export interface DecodedAuthBlockingToken {
// (undocumented)
@@ -329,6 +339,16 @@ export interface OIDCUpdateAuthProviderRequest {
responseType?: OAuthResponseType;
}

// @public
export interface PasswordPolicyConfig {
constraints?: CustomStrengthOptionsConfig;
enforcementState?: PasswordPolicyEnforcementState;
forceUpgradeOnSignin?: boolean;
}

// @public
export type PasswordPolicyEnforcementState = 'ENFORCE' | 'OFF';

// @public
export interface PhoneIdentifier {
// (undocumented)
@@ -344,6 +364,7 @@ export class PhoneMultiFactorInfo extends MultiFactorInfo {
// @public
export class ProjectConfig {
get multiFactorConfig(): MultiFactorConfig | undefined;
readonly passwordPolicyConfig?: PasswordPolicyConfig;
get recaptchaConfig(): RecaptchaConfig | undefined;
readonly smsRegionConfig?: SmsRegionConfig;
toJSON(): object;
@@ -427,6 +448,7 @@ export class Tenant {
readonly displayName?: string;
get emailSignInConfig(): EmailSignInProviderConfig | undefined;
get multiFactorConfig(): MultiFactorConfig | undefined;
readonly passwordPolicyConfig?: PasswordPolicyConfig;
get recaptchaConfig(): RecaptchaConfig | undefined;
readonly smsRegionConfig?: SmsRegionConfig;
readonly tenantId: string;
@@ -479,6 +501,7 @@ export interface UpdatePhoneMultiFactorInfoRequest extends BaseUpdateMultiFactor
// @public
export interface UpdateProjectConfigRequest {
multiFactorConfig?: MultiFactorConfig;
passwordPolicyConfig?: PasswordPolicyConfig;
recaptchaConfig?: RecaptchaConfig;
smsRegionConfig?: SmsRegionConfig;
}
@@ -503,6 +526,7 @@ export interface UpdateTenantRequest {
displayName?: string;
emailSignInConfig?: EmailSignInProviderConfig;
multiFactorConfig?: MultiFactorConfig;
passwordPolicyConfig?: PasswordPolicyConfig;
recaptchaConfig?: RecaptchaConfig;
smsRegionConfig?: SmsRegionConfig;
testPhoneNumbers?: {
3 changes: 3 additions & 0 deletions etc/firebase-admin.firestore.api.md
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ import { DocumentReference } from '@google-cloud/firestore';
import { DocumentSnapshot } from '@google-cloud/firestore';
import { FieldPath } from '@google-cloud/firestore';
import { FieldValue } from '@google-cloud/firestore';
import { Filter } from '@google-cloud/firestore';
import { Firestore } from '@google-cloud/firestore';
import { FirestoreDataConverter } from '@google-cloud/firestore';
import { GeoPoint } from '@google-cloud/firestore';
@@ -78,6 +79,8 @@ export { FieldPath }

export { FieldValue }

export { Filter }

export { Firestore }

export { FirestoreDataConverter }
Loading