Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Pending breaking changes

Aperta
#347 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
firebase, node.js, typescript
Ambito
backend, release

Direzione di ricerca

Start by reviewing the linked issues and pull requests (#326, #336, #337, #334, #328, #316, #40, and #281) and the package’s release and public type definitions. Decide which breaking changes belong in 4.0 and resolve the open proposals; done when the release scope and outstanding type and API decisions are agreed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

main has breaking changes since 3.5.0, so the next release needs to be 4.0.0. This issue lists what is already merged and what still needs a decision.

Merged, not yet released:

  • The minimum Node version is now 22 (#326). The CHANGELOG entry says Node 20 and lists it as a chore. It should say 22 and be marked as breaking.
  • firebase-admin ^8 and ^9 are removed from the peer range and ^14 is added (#336). Until this is released, installing with firebase-admin 14 fails with ERESOLVE.
  • makeDocumentSnapshot now returns QueryDocumentSnapshot or DocumentSnapshot instead of any (#337).

Open PRs to decide on for 4.0:

  • #334: mockConfig() throws on firebase-functions v7, which removed functions.config(). Today mockConfig() appears to work and the error only shows up later.
  • #328: v2 callable typing (#257).
  • #316 (draft): v2 event typing (#205). Code that passes raw data would need wrapped({ data: change }).

Requests with no PR yet:

  • #40: replace export = with standard module exports.
  • #281: ship ESM alongside CommonJS. An exports map would also block deep imports such as firebase-functions-test/lib/....
  • Remove mockConfig entirely, now that firebase-functions v7 has no functions.config().

Public types that only a major can tighten:

  • WrappedFunction, WrappedScheduledFunction and WrappedV2Function return any | Promise<any>. The CloudFunction generics could give a real return type.
  • EventContextOptions.auth and params, and CallableContextOptions.auth and app, are any. Typing them as AuthData / AppCheckData would break tests that pass { uid } without token.
  • wrapV2 calls run(req) with no second argument, so onCall((req, response) => ...) gets response === undefined. Adding a CallableResponse mock is additive, but if #328 changes the wrapped callable signature it should leave room for that second argument now rather than in another major.
Lingua principale
TypeScript
Stelle
249
Fork
63
Merge medio
7g 19h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/firebase-functions-test

Tutte le issue di firebase/firebase-functions-test

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.