Commit Graph
333 Commits
Author SHA1 Message Date
Christina HollandandGitHub 3180c9a700 build(deps): update deps with security issues (pass 1) (#10119) 2026-07-01 12:30:03 -07:00
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
Daniel La RocqueandGitHub e0aabcc41e chore(format): optimize code formatting speed repo-wide (#10111)
Enable prettier caching (--cache) across all package prettier scripts and the main format script, and optimize the custom license header checker to read only the first 1000 bytes of each file.

Performance Data:
- Repo-wide formatting (yarn format --all):
  - Before caching: ~35-40s (uncached formatting + full license check)
  - After caching: ~5.8s (cached formatting + header-only license check)
  - Speedup: ~6x speedup
2026-06-24 16:34:57 -04:00
wu-huiandGitHub 39a6e5bf5f Revert "chore(ci): make all firestore integration tests optional (#10028)" (#10073)
Also trigger Firestore tests when Firestore workflow files are modified.
2026-06-15 15:16:07 -04:00
Christina HollandandGitHub 04042418ae Bump mock responses major version (#9818) 2026-04-07 13:02:55 -07:00
Mark DuckworthandGitHub d096720646 feat/pipelines to main (#9356) 2026-01-07 19:05:34 -07:00
Christina HollandandGitHub 1795e7c213 Fix functions deploy by upgrading to node 20 (#9377) 2025-11-12 18:17:22 -08:00
Maneesh TewaniandGitHub e552226499 Fixed onComplete for FDC (#9349) 2025-10-30 12:23:31 -07:00
Daniel La RocqueandGitHub 6ad276ae7f test(ai): Update mock responses to v15 (#9328) 2025-10-21 14:05:09 -04:00
Christina HollandandGitHub 8383716403 docs: Fix docgen script to clean out package temp folders first (#9250) 2025-09-18 11:33:58 -07:00
Christina HollandandGitHub 0267edce9c build!: update build targets to ES2020 (#9101) 2025-07-11 17:27:17 -07:00
Daniel La RocqueandGitHub f8994d206e test(ai): Upgrade mock responses to v14 (#9091) 2025-06-13 10:07:17 -04:00
Christina HollandandGitHub 726ac5285a ci: Fix Firefox error and streamline cross-browser tests (#9015) 2025-06-05 14:37:37 -07:00
Daniel La RocqueandGitHub 5fbec15b0d Rename @firebase/vertexai package to @firebase/ai (#9011) 2025-05-12 16:54:33 -04:00
Daniel La RocqueandGitHub bc049fe4d3 feat(ai): Migrate to AI and add GoogleAI support (#8931) 2025-05-12 15:43:44 -04:00
Daniel La RocqueandGitHub 80a87d6d0f test(vertexai): update mock responses to v10 (#8959) 2025-04-23 14:02:07 -04:00
Daniel La RocqueandGitHub 11e4f526d6 test(vertexai): update mock responses to v8 (#8904) 2025-04-08 13:17:02 -04:00
Maneesh TewaniandGitHub 4fa8ba8d43 Implement Partial Errors for FDC (#8821) 2025-03-21 15:04:23 -07:00
8dd94f8b86 fix golden files test (#8843)
* fix golden files test

* update responses version

---------

Co-authored-by: David Motsonashvili <[email protected]>
2025-03-17 13:53:27 -07:00
Daniel La RocqueandGitHub 9809ff6f63 Filter empty text parts when streaming (#8736)
* Filter empty text parts when streaming

* Add changeset

* Remove unused filterEmptyTextParts()

* Move logic into a function

* final

* dont throw if mock response file isn't found

* update responses version to 6

* Only ignore empty text parts in the aggregated response.

* review fixes

* Throw in `aggregateResponses` if `newPart` has no properties
2025-02-12 12:43:34 -05:00
Christina HollandandGitHub 166ad34764 Adds a "firebase" changeset to release PR as needed (#8770) 2025-02-10 11:57:15 -08:00
Christina HollandandGitHub 7bec6a1f4b Update dependencies in packages and repo-scripts (#8729) 2025-02-04 13:31:24 -08:00
Christina HollandandGitHub dbac30bbfc Update a lot of dependencies (#8716) 2025-01-23 10:55:59 -08:00
Maneesh TewaniandGitHub 2d733bb325 Add FDC Integration Tests (#8703) 2025-01-14 15:20:50 -08:00
Christina HollandandGitHub 4e87280452 fix regex to include non-numeric (#8692) 2025-01-07 12:39:18 -08:00
Christina HollandandGitHub 685611a3ae Set e2e test workflow to poll npm to check the version is available (#8684) 2025-01-07 09:54:08 -08:00
Daniel La RocqueandGitHub 8ba988653a Consolidate CI test output into a single string (#8489)
* Consolidate CI test output into a single string

Having CI test process stdout and stderr in a single string makes it
easier to read when looking through failures, since you can see the test
output alongside the error messages.

Without this, any stderr output written during a test will be captured
seperately from the test output, so when we then log it after a test
failure, we can't tell which test logged which errors.

* Prefix stdout and stderr output
2024-11-06 09:57:57 -05:00
Daniel La RocqueandGitHub 5c6400b543 Remove modifiers from compat overloads (#8604)
* Remove modifiers from compat overloads

* format

* Add changeset
2024-10-25 15:16:08 -04:00
Daniel La RocqueandGitHub 6c2e758589 Upgrade to TypeScript 5 (#8561) 2024-10-25 08:24:10 -04:00
5ac9bb26a4 Merge v11 Feature Branch (#8475)
* Add node engines fields specifying a minimum of 18 (#8457)

* Make memory lru gc the default (#8110)

* Make memory lru gc the default

* undo yarn.lock

* Make memory lru gc the default

* Fix tests

* V11 release removal of node-fetch and undici dependencies (#8492)

Our v11 release will require node 18+. Since fetch has been introduced in these node versions, we can remove our dependency on third party fetch implementations.

This change removes our usage of fetch variants undici and node-fetch for our node target builds and our CI tools.

* V11 - Remove functions node bundle (#8507)

With the removal of fetch we no long need to create a node bundle for functions. Instead the sourcebase may become isomorphic, so long as we remove the older node sources. And that's what the PR does!

* Initial changes for Vertex GA packaging (#8498)

* [Vertex GA] Rewrite Schema (#8479)

* [Vertex GA] Add new endpoint and error message. (#8497)

* [Vertex GA] Miscellaneous breaking changes for Vertex GA (#8514)

* Remove ES5 Support (#8509)

* Emit a module package file for functions ESM builds (#8517)

* Update API_NOT_ENABLED error for Vertex (#8549)

* Upgrade cjs bundles for storage and performance (#8557)

These should have been part of the bigger PR, but I missed these.

* Rollup JS files with rollup-typescript-plugin (#8503)

The rollup-typescript-plugin does not transpile JS files using the TS
compiler by default. This means that external dependencies that provide
JS bundles will not be transpiled to the target ES version specified in
the TypeScript config used by the plugin.

This resulted in one of our dependencies (https://github.com/jakearchibald/idb)
being included in the CDN bundles without being transpiled to
ES5 (the target ES version). Since this dependencies bundle uses
ES2018 syntax (object spread operator `{ ...x }`), this upgraded our CDN
bundles' minimum ES version requirement to ES2018 which isn't compatible with older browser versions.
To see the ES2018 syntax in one of the CDN bundles, see
https://www.gstatic.com/firebasejs/10.13.1/firebase-app.js and search for `...oldTraps`.

* Fix tsc errors in vertex tests (#8562)

* Make SafetySettings.method optional (#8567)

* Make SafetySettings.method optional

* Update API reports

---------

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

* [Vertex GA] Regenerate docs after Vertex GA changes (#8505)

* Close emulator file after download is complete (#8572)

* close file

* Add test:ci to end of test command in CI

* revert workflow file changes

* format

* rename vertexai package reference in a changeset (#8573)

* Missed one doc change from a PR (#8575)

* Overwrite undefined candidate index (#8577)

* Overwrite undefined candidate index

* Fix index overwrite condition to only be true when index is not a property

* Upgrade Vertex Mock Responses to V5 (#8579)

* Upgrade to mock responses v4

* Upgrade from v4 to v5 mock responses

---------

Co-authored-by: wu-hui <[email protected]>
Co-authored-by: DellaBitta <[email protected]>
Co-authored-by: Daniel La Rocque <[email protected]>
Co-authored-by: hsubox76 <[email protected]>
2024-10-17 14:06:59 -07:00
Daniel La RocqueandGitHub 5d0eb3e117 Introduce WebkitHeadless browser testing (#8491)
* Introduce WebkitHeadless browser testing

Replace Safari with WebkitHeadless in list of supported karma browsers

Install playwright browsers in CI

Set WEBKIT_HEADLESS_BIN

Update launcher version

Run firestore test changed on push

Fix

Don't use  in test-changed-firestore

Ignore failing tests

* Formatting

* Respond to review comments
2024-10-02 12:12:28 -04:00
Maneesh TewaniandGitHub 17efec1411 Data Connect Product (#8480) 2024-09-24 01:33:29 -07:00
Daniel La RocqueandGitHub 43ffcf178f Use default concurrency value for lerna run (#8462)
The default concurrency value for leran run is the number of logical CPU
cores. This is better than arbitrarily using 4 threads, since different
machines may be able to handle more.
2024-09-06 11:22:32 -04:00
Daniel La RocqueandGitHub d73c8f99b9 Upgrade vertex responses to v3 (#8445) 2024-08-20 14:22:11 -04:00
Tanzim HossainandGitHub ba2ea85304 VertexAI: use updated set of mock responses (#8421) 2024-08-13 10:23:28 -04:00
Mark DuckworthandGitHub 4e0567c63c Vector Type (#8215)
Implement VectorValue type support.
2024-08-12 07:38:01 -06:00
Christina HollandandGitHub 262f1f8235 Rename usages of "master" branch to "main" (#8398) 2024-07-26 13:36:00 -07:00
Christina HollandandGitHub 0760318bbd Fix changeset checker (#8392) 2024-07-25 10:46:19 -07:00
Josh SorefandGitHub b4e60981a5 Spelling (#8280)
Numerous fixes to spelling across the SDK.
2024-07-18 16:53:00 -04:00
Tanzim HossainandGitHub 1a6daa9bc9 VertexAI: add support for mock responses versioning system (#8361) 2024-07-15 13:17:21 -04:00
Yifan YangandGitHub fcf49b5007 Update the URL for the Metric Service (#8261)
The custom domain "firebase-sdk-health-metrics.com" currently
associated with the Metric Service will be deprecated eventually,
due to the acquisition of Google Domains by Squarespace.

Switching to the original URL created by Google Cloud Run (which
hosts the Metric Service) to avoid service disruption.

See b/303931111 for more details.
2024-07-01 11:00:41 -07:00
Daniel La RocqueandGitHub fcb101f17b Add docgen all script and update documentation (#8258)
* Add docgen all script and update documentation

* Move toc to devsite, and rename to `_toc.yaml`

* Fix formatting

* Remove seperate toc CI check

* Update Contributing guide

* revert changes made to refdocs
2024-06-04 16:25:44 -05:00
Christina HollandandGitHub 88f57d26bc More robust clean up after unexpected docgen process exits. (#8260) 2024-05-22 13:59:22 -07:00
352dc825d0 Add Vertex SDK (#8119)
Co-authored-by: Daniel La Rocque <[email protected]>
Co-authored-by: hsubox76 <[email protected]>
Co-authored-by: rachelsaunders <[email protected]>
Co-authored-by: DellaBitta <[email protected]>
2024-05-08 14:28:01 -07:00
DellaBittaandGitHub 8b90666f4d Enable previously failing (Firestore) Node.js and Browser (Chrome) Tests (#8067)
A Firestore CI test configuration was previously disabled in our GitHub action Workflows due to a 100% failure rate. While revisiting this issue months later, it seems that the test now passes. This might be related to our Node v20 CI upgrade.

As a bonus, fixed a comment typo in the check changeset script.
2024-03-14 13:41:23 -04:00
DellaBittaandGitHub f9e32dc261 Update CI node.js versions to 20.x (#8055)
Upgrade our CI scripts and workflows to work in Node 20.x:
 - Updated workflows to use node 20.x across the board
 - Updated tests which use the emualtor to connect to '127.0.0.1' explicitly instead of 'localhost', since newer versions of `node` treat `localhost` differently depending on the executing OS. For instance, `localhost` might resolve to the IPv6 address `::1`, but that's not the address that the emulators bind to.
 - Updated `packages/rules-unit-testing/functions/package.json` `engines` directive to define `>=16` instead of requiring `16` explicitly.
2024-03-08 08:31:54 -05:00
Denver ConeybeareandGitHub f9124936ff Fix errors in reporting errors in the "Check changeset vs changed files" workflow (#7964) 2024-01-19 13:48:47 -05:00
DellaBittaandGitHub 96eb992a46 [Auth CI] Log warning if chrome version has changed (#7872)
Add CI annotations if the chrome browser is out of date with auth's latest tested version.
2023-12-14 20:43:47 -05:00
DellaBittaandGitHub d38ca610f5 Comment changes for OSS (#7778)
Updating license headers and contribution guide for a better open source experience.
2023-11-14 15:24:24 -05:00
MilaandGitHub 934af47ff9 MIEQ: add negative test cases (#7680) 2023-10-13 12:04:20 -04:00