7 Commits
Author SHA1 Message Date
DellaBittaandGitHub 71b94c4e87 build(deps): Upgrade Lerna to 9.0.6 (#10032)
### Discussion

Upgrade `lerna` from `4.x` to `9.x`. This newer version of `lerna` is powered by `NX`, which also requires a newer minor version bump of `node` in our workflows, and slight changes our test execution parms.

The new version of Lerna is said to improve performance, and that seems to have exacerbated race conditions in the Auth test suites (@firebase/auth and @firebase/auth-compat). To resolve intermittent CI failures caused by these race conditions, I've configured these tests to run in serial instead of concurrently.

Also I needed to bump the node version of our workflows by 2 minor versions (20.10.0 -> 2.12.0) because Lerna 9.0.6 isn't supported in Node 20.10.0.

### Testing
 - Clean repo, clean cache, clean dependency installs.
 - CI, local builds and tests. 

Note: The Firestore WebKit failure in the optional CI execution list is a known issue (b/524995481).

### API Changes

None.
2026-06-30 20:27:27 -04:00
6434c30541 Repo refactoring (#5345)
* Split storage and storage-compat (#5271)

* separate storage-compat from storage

* commit

* fix tests

* wat?

* build storage-compat

* save

* fixing some compat tests

* format

* update import path

* format

* get compat tests to work

* format

* update package json

* cleanup

* format

* address comments

* Update packages/storage-compat/test/unit/service.test.ts

Co-authored-by: Christina Holland <[email protected]>

* add missing dev dep

* Update packages/storage-compat/package.json

* Update packages/storage-compat/package.json

* Update deps after v8 release

* update compat version

* Split database and database-compat (#5276)

* compile database

* pass database tests

* compile and test database-compat

* pass all tests

* prettier

* cleanup

* fix lint

* address comments

* what is going on with ci

* use correct case in import path

* uppercase

* rename

* fix component name

* Repo refactoring for v9 (#5325)

* rename folders

* rename folders

* migrate app and app-compat

* migrate installations and analytics

* migrate app check

* migrate auth

* migrate functions

* migrate messaging

* migrate performance

* migrate remoteconfig

* remove v8 code

* update versions

* migrate firebase

* fix merge issues

* save

* fix firebase builds

* update changeset config

* update build scripts

* update release script

* fix functions typings

* remove redundant typings

* update path

* treat external dependencies correctly

* fix lint

* remove firestore-compat references

* fix build issues

* update build scripts

* update pkg json

* fix test

* fix some tests

* fix some tests

* fix integration tests

* fixes

* fix dep

* update ci tests

* resolve todos

* remove exp references

* docgen build

* export FirebaseError (#5349)

* firebase packaging update (#5348)

* Fei v9 main firestore (#5319)

* compile firestore

* update typings path

* compile firestore compat

* lint compat

* make test work

* get most tests work

* build

* remove special paths

* update firestore-compat pkg json

* fix merge issues

* Simplify bundles

* Prettier

* Fix Bundle compile

* Fix build

* address comments

* console build

* Fix all tests

* Prettier

* fix merge issues

* fix typo

* update paths

* app-exp

* fix lint

* correct path

* fix

* fix compat lint

* fix firestore integration

* fix workflow

* update dep

* Always block on Auth (#5340)

* Always block on Auth

* Don't block on token if already recevied

* fix lint

* build firestore

* remove memory only tests

* fix firebase integration tests

* enable more build and tests

* add firestore-compat to firebase dep

* fix auth compat class

* enable auth test

* auth package doc

* Update API reports

Co-authored-by: Sebastian Schmidt <[email protected]>
Co-authored-by: Feiyang1 <[email protected]>

* rebasing

* Create registerMessagingCompat.ts

* Add changeset for v9 (#5350)

* add changeset

* publish messaging interop

* add firestore bumps

* update changeset

* Revert "Create registerMessagingCompat.ts"

This reverts commit 0b95a5167e403ffc0dbcd9dd7dcb7cda754e510d.

* Revert "rebasing"

This reverts commit a8bf697157aaa29e8450acb626aae81ad5b542e1.

* Update index.d.ts (#5355)

* Fix Context Check in `Messaging-Compat` (#5353)

* Add Rules Unit Testing v2 skeleton for v9 release (#5352)

* Reset package for next major version.

* Switch emulator script to node-fetch.

* Migrate the other request call to fetch.

* Update packages/rules-unit-testing/package.json

Co-authored-by: Feiyang <[email protected]>

* Create stale-ducks-live.md

* Revert version change.

Co-authored-by: Feiyang <[email protected]>

* fix import path (#5356)

* Add new types and function stubs for RUT vNext. (#5316)

* Add new types and function stubs.

* Fix types for testEnv.emulators.

* Add util functions.

* Add withFunctionTriggersDisabled overloads.

* Improve typing for EmulatorConfig.

* Fix tests.

* Rename test_environment.ts to initialize.ts.

* Add a dummy test to make CI pass.

* Implement emulators discovery in RUTv2. (#5334)

* Add new types and function stubs.

* Fix types for testEnv.emulators.

* Add util functions.

* Add withFunctionTriggersDisabled overloads.

* Improve typing for EmulatorConfig.

* Fix tests.

* Rename test_environment.ts to initialize.ts.

* Add a dummy test to make CI pass.

* Implement emulators discovery.

* Use URL object from global.

* Fix unreachable  error code.

* Implement most of RUTv2 features. (#5343)

* Implement most of RUTv2 features.

* Switch to compat instances.

* Remove legacy code.

* Use public typings for release (#5358)

* use public typings for storage

* use public typings for database

* Implement rest of RUTv2 features. (#5360)

* Implement loading rules and withFunctionTriggersDisabled.

* Implement clearFirestore and storage.

* Add missing await.

* Add default bucketUrl.

* Use alternative method to clear bucket.

* Use default param (review feedback).

* Storage typing updates (#5359)

* rename to StorageError

* more type safety

* Update API reports

* update api report

Co-authored-by: Feiyang1 <[email protected]>

* correct component name

* fix installtions-compat typing

* remove rules-unit-testing from ignore list

* reenable things

* support mjs files

* correct matching pattern

* transform only @firebase/util

* use public types for database doc

* transform all but compat packages

Co-authored-by: Sebastian Schmidt <[email protected]>
Co-authored-by: Feiyang1 <[email protected]>
Co-authored-by: kai <[email protected]>
Co-authored-by: Yuchen Shi <[email protected]>
Co-authored-by: Kai Wu <[email protected]>
2021-08-24 13:56:01 -07:00
Nik GorylenkoandGitHub fa67de0629 lerna field is deprecated since v3 (#3924)
Remove deprecated field. Anyway, currenly project uses learna v3.22.1, not 3.10.x
2020-10-19 10:59:40 -07:00
6e802da18e Size Analysis Tool - Phase 1 (#3588)
* size analysis tool phase 1

* Create shy-bears-heal.md

* Delete shy-bears-heal.md

* enable toplevel mangling (#3591)

* enforce -o command line flag

* ignore size-analysis package in changeset

* profile the tests

* use smaller timeout

* update package.json

Co-authored-by: Feiyang <[email protected]>
Co-authored-by: Feiyang1 <[email protected]>
2020-08-11 11:37:55 -07:00
FeiyangandGitHub ece44e5cca @firebase/app modularization exp (#2836)
* init app-exp

* add new packages

* remove pkg

* fix import paths

* make tests pass again

* move exp packages to packages-exp folder

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* drop node in file name

* remove compat code

* add documentation

* add internal submodule

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* update run_changed script to account for packages-exp folder

* fix test

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* fix lerna version

* Implement client logging

* [AUTOMATED]: Prettier Code Styling

* fix small things

* update readme
2020-03-31 16:00:24 -07:00
Yifan YangandGitHub 5c8c1ff7bb Do not print duplicate error messages to stdout. (#1468)
* Do not print duplicate error messages to stdout.

* Upgrade to latest lerna version (v3.10.5).
2019-01-18 10:32:10 -08:00
Josh CrowtherandGitHub 73a586c92a Monorepo Refactor (#171)
* Refactor monorepo to use yarn workspaces and lerna

WIP: testing

Refactor folder structure to use lerna

WIP: more testing

feat(util): add deferred class

Publish

 - @firebase/[email protected]
 - @firebase/[email protected]

WIP: asdoifj

WIP: build artifact

WIP: asdf

Cleaning up from .gitignore

Add prepublish script

Isolate base configs

Making top level scripts parallel

Adding storage

Add messaging

Adding database code

TODO: Fix all of the broken issues and import the rest of the utils

Adding type info

add database

Adding firebase package

Generating ES Module builds

Attaching firebase.js to the global scope

Adding lint-staged to the build

Removing commitizen dependency

Updating metafiles

Working on devx

Add react-native package

Move packages/firebase -> packages/core

Fix issues with package.json

Bump core version

testing a thing

Add more entries to the .npmignore

* Refactor to better separate ESM/CJS builds

* Adding test:setup script

* Fix breaking test (sourcemaps loaded in the test breaks the regex)

* Remove commitizen message from CONTRIBUTING.md

* WIP: Migrate integration tests

* Adding namespace integration tests

* Add messaging integration tests

* Fix issue with indv-module builds

* Committing yarn.lock

* Import 4.4.0 Changes

* Add dev scripts, move core -> firebase

* Add missing dependencies, flesh out dev experience

* Add top level repl for test/debugging

* Make the REPL pretty

* Refactor to scope prepublish execution

* Add @firebase/auth

* Fixing broken int tests

* Picking up missing changes from edad44d9bc

* Adding comment to .prettierignore

* Fixed issue where firebase didn't exist on reset

* Update yarn.lock for lint-staged

* Refactor test setup script and .travis.yml

* Fix firebase package dep versions

* Refactor precommit hook -> prepush hook

* [AUTOMATED]: Format Styling

* Update prettier and prettierrc

* [AUTOMATED]: Format Styling

* Adding dist to .prettierignore

* Fixing some oddities in yarn.lock

* Refactor hooks prepublish -> prepare

* Updating top-level scripts

* Add pretest validation/checking

* [AUTOMATED]: Prettier Code Styling

* Running travis tests w/ xvfb-run

* Add a spinner instead of the prettier stdio

* update yarn.lock

* [AUTOMATED]: Prettier Code Styling

* Fixing child process STDOUT

* [AUTOMATED]: Prettier Code Styling

* Switch to using stopAndPersist()

* Moving file gitHooks/index.js -> gitHooks/prepush.js

* Remove legacy .lintstagedrc

* Add typinngs file for those only including fiebase/app

* Add initial stub for @firebase/polyfill

* Adding new clean yarn.lock

* Refactor const -> var (no transpiling)

* Add automated license header validation

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Aesthetic prepush validation things

* [AUTOMATED]: Prettier Code Styling

* Add karma-sauce-launcher

* Attempt 1: Try to get saucelabs browser testing working

* Attempt 2: Adding sauceLabs config prop to karma.base

* [AUTOMATED]: Prettier Code Styling

* Attempt 3: Getting rid of the connectOptions

* [AUTOMATED]: Prettier Code Styling

* Fix CODEOWNERS

* Add module boilerplate for @firebase/firestore

* Refactor Firestore source to standalone package

* Remove unneeded typings

* Remove unneeded promise dependency

* Fix top level paths

* Bump firebase package version

* Fix firestore source paths

* Fix @firebase/app reference

* Refactor to fix TSC errors

* Refactor to make node unit tests work

* Publish

 - @firebase/[email protected]
 - @firebase/[email protected]
 - @firebase/[email protected]
 - [email protected]
 - @firebase/[email protected]
 - @firebase/[email protected]
 - @firebase/[email protected]
 - @firebase/[email protected]
 - @firebase/[email protected]

* Add firestore to main firebase binary

* Pin firebase package to strict versions

* Fix browser firestore tests

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Changing base karma browsers

* Disabling cross-browser karma tests

* [AUTOMATED]: Prettier Code Styling

* Removing sauce_connect addon from .travis.yml

* Refactor messaging test script

* Refactor the browserNoActivityTimeout

* [AUTOMATED]: Prettier Code Styling

* Adding polyfills to the main browser bundles

* Add firestore/README.md

TODO(jshcrowthe): Fix these tests per the comments in this file

* Fix firestore VSCode scripts

* Fix regex for firestore __data__ prop

* [AUTOMATED]: Prettier Code Styling

* Initial Commit

* Add a brief README.md

* Add *.tgz to .npmignore

* Publish: v0.1.1

* Turn on advanced optimizations for this code

* Leverage "ADVANCED_OPTIMIZATIONS" mode in closure compilation

* 0.2.0

* Add XhrIo prototype overrides

* 0.2.1

* Remove unneeded lockfile

* Fixing dependency versions

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* TEMP: Remove saucelabs reporter

* Fix prettier styling bug (fights with closure)

* Update firebase/app typings

* Leverage default exports

* Updating top-level README.md

* Refactor mocha timeout to be 20 seconds for firestore

* Addressing some review comments from @mikelehen

* temp

* Fixing license header spacing issues

* Refactor license header check

* [AUTOMATED]: Prettier Code Styling

* [AUTOMATED]: License Headers

* Revert "[AUTOMATED]: License Headers"

This reverts commit 559068ceb070519f39207e15886e147787cd941a.

* Revert "Refactor license header check"

This reverts commit 34c671ab9730d6480e487b6ddcd7283f7df3979a.

* Fixing more license headers

* Add @wilhuff and @wti806 to CODEOWNERS

* Adding one more --auto-watch flag

* Add 3 retries to firestore tests

* Bumping browserNoActiityTimeout

* @firebase/app - package.json housekeeping

* @firebase/auth - README.md housekeeping

* @firebase/database - README.md housekeeping

* @firebase/firestore - README.md housekeeping

* Updating auth readme

* @firebase/messaging - README.md housekeeping

* Updating database readme

* Fixing issue with messaging/package.json (copy-paste fail)

* @firebase/polyfill - README.md housekeeping

* @firebase/storage - README.md housekeeping

* @firebase/util - README.md housekeeping

* Fixing package.json repo links

* Refactor from PromiseLike -> Promise

* Add firebase externs

* [AUTOMATED]: Prettier Code Styling

* Fix license values in package.json
2017-10-06 20:15:50 -07:00