backend-manager 5.2.11 → 5.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ # [5.2.12] - 2026-05-27
18
+
19
+ ### Changed
20
+
21
+ - **`before-signin`: move `activity.language` from `geolocation` to `client`.** In `src/manager/events/auth/before-signin.js`, the `language` field (sourced from `context.locale`) now lives under `activity.client` alongside `userAgent`, instead of under `activity.geolocation` alongside `ip`. Language is a client-side property (browser/locale) rather than an IP-derived geolocation property, so this aligns the before-signin write shape with the rest of the activity schema.
22
+
17
23
  # [5.2.11] - 2026-05-27
18
24
 
19
25
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.2.11",
3
+ "version": "5.2.12",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -46,10 +46,10 @@ module.exports = async ({ Manager, assistant, user, context, libraries }) => {
46
46
  activity: {
47
47
  geolocation: {
48
48
  ip: context.ipAddress,
49
- language: context.locale,
50
49
  },
51
50
  client: {
52
51
  userAgent: context.userAgent,
52
+ language: context.locale,
53
53
  },
54
54
  },
55
55
  }, { merge: true })