heartraite 1.0.191 → 1.0.192

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.
@@ -154,11 +154,13 @@ export type RegisterOnboardingRequest = {
154
154
  interestedIn: Gender[];
155
155
  gender: Gender;
156
156
  /** Client-resolved market (e.g. localeService.getMarketSync() in youand-app).
157
- * Required in the contract; the backend DTO accepts it as optional during
158
- * the rollout window so old in-the-wild app builds (which compile against
159
- * pre-1.0.191 types) still pass validation and fall back to the existing
160
- * users.market. Tighten DTO to required once adoption is high. */
161
- market: Market;
157
+ * Optional during the rollout youand-app doesn't yet populate it. Tighten
158
+ * to required once youand-app ships the change. The backend uses this to
159
+ * (a) keep users.market in sync if the device locale changed since signup
160
+ * and (b) recover the correct market for users self-healed by
161
+ * registerOnboarding. The backend MUST NOT update users.market when this
162
+ * field is absent (preserve the existing value). */
163
+ market?: Market;
162
164
  };
163
165
  export type GetUserRequest = undefined;
164
166
  export type UpdateUserRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.191",
3
+ "version": "1.0.192",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -178,11 +178,13 @@ export type RegisterOnboardingRequest = {
178
178
  interestedIn: Gender[];
179
179
  gender: Gender;
180
180
  /** Client-resolved market (e.g. localeService.getMarketSync() in youand-app).
181
- * Required in the contract; the backend DTO accepts it as optional during
182
- * the rollout window so old in-the-wild app builds (which compile against
183
- * pre-1.0.191 types) still pass validation and fall back to the existing
184
- * users.market. Tighten DTO to required once adoption is high. */
185
- market: Market;
181
+ * Optional during the rollout youand-app doesn't yet populate it. Tighten
182
+ * to required once youand-app ships the change. The backend uses this to
183
+ * (a) keep users.market in sync if the device locale changed since signup
184
+ * and (b) recover the correct market for users self-healed by
185
+ * registerOnboarding. The backend MUST NOT update users.market when this
186
+ * field is absent (preserve the existing value). */
187
+ market?: Market;
186
188
  };
187
189
  export type GetUserRequest = undefined;
188
190
  export type UpdateUserRequest = {