[REQUIRED] Describe your environment
- Operating System version: _____
- Browser version: _____
- Firebase SDK version: _____
- Firebase Product: _____ (auth, database, storage, etc)
[REQUIRED] Describe the problem
v8:
|
expect(e.code).to.equal(code); |
v9:
|
expect(e.code).to.match(new RegExp(`functions.*/${code}`)); |
The change of error code format (it attaches "functions/" at the beginning since v9) is not mentioned in the v8 v9 migration guide. It should be well announced in the documentation.
Otherwise, if a user relies on the error code string in their app, the upgrade will cause a crush (like me 😢 ).
Steps to reproduce:
Relevant Code:
// TODO(you): code here to reproduce the problem
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
v8:
firebase-js-sdk/packages/functions/test/callable.test.ts
Line 50 in 919413c
v9:
firebase-js-sdk/packages/functions-compat/src/callable.test.ts
Line 40 in cdada6c
The change of error code format (it attaches "functions/" at the beginning since v9) is not mentioned in the v8 v9 migration guide. It should be well announced in the documentation.
Otherwise, if a user relies on the error code string in their app, the upgrade will cause a crush (like me 😢 ).
Steps to reproduce:
Relevant Code:
// TODO(you): code here to reproduce the problem