@atlasauth/types 0.2.0 → 0.3.0

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
@@ -1,5 +1,11 @@
1
1
  # @atlasauth/types changelog
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Added
6
+
7
+ - `User.version` (optional): strictly increases with every change to the user; user webhook payloads carry the same value.
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Added
@@ -51,6 +51,12 @@ export interface User {
51
51
  last_sign_in_at: number | null;
52
52
  created_at: number;
53
53
  updated_at: number;
54
+ /**
55
+ * Strictly increases with every change to the user; user webhook payloads
56
+ * carry the same value. Apply an update only if its version is higher than
57
+ * the one you hold. (Absent from servers older than this field.)
58
+ */
59
+ version?: number;
54
60
  }
55
61
  export interface EmailAddress {
56
62
  object: 'email_address';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasauth/types",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Shared public TypeScript types for Atlas — the Atlas peer of @clerk/types. Dependency-free, runtime-free: import type { User } from '@atlasauth/types' pulls in no runtime SDK.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "typescript": "^5.6.3",
14
- "@atlasauth/localizations": "0.2.0"
14
+ "@atlasauth/localizations": "0.6.0"
15
15
  },
16
16
  "publishConfig": {
17
17
  "access": "public"