@objectstack/plugin-auth 3.2.9 → 3.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/plugin-auth@3.2.9 build /home/runner/work/spec/spec/packages/plugins/plugin-auth
2
+ > @objectstack/plugin-auth@3.3.0 build /home/runner/work/spec/spec/packages/plugins/plugin-auth
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
@@ -66,13 +66,13 @@
66
66
  ╵ ~~~~~~~~~
67
67
 
68
68
 
69
- ESM dist/index.mjs 42.00 KB
70
- ESM dist/index.mjs.map 93.72 KB
71
- ESM ⚡️ Build success in 118ms
72
69
  CJS dist/index.js 45.49 KB
73
70
  CJS dist/index.js.map 94.25 KB
74
- CJS ⚡️ Build success in 118ms
71
+ CJS ⚡️ Build success in 83ms
72
+ ESM dist/index.mjs 42.00 KB
73
+ ESM dist/index.mjs.map 93.72 KB
74
+ ESM ⚡️ Build success in 85ms
75
75
  DTS Build start
76
- DTS ⚡️ Build success in 9265ms
77
- DTS dist/index.d.mts 867.98 KB
78
- DTS dist/index.d.ts 867.98 KB
76
+ DTS ⚡️ Build success in 9107ms
77
+ DTS dist/index.d.mts 868.05 KB
78
+ DTS dist/index.d.ts 868.05 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 814a6c4: sql driver
8
+
9
+ ### Patch Changes
10
+
11
+ - @objectstack/spec@3.3.0
12
+ - @objectstack/core@3.3.0
13
+
3
14
  ## 3.2.9
4
15
 
5
16
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -241,7 +241,7 @@ declare class AuthManager {
241
241
  callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
242
242
  newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
243
243
  errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
244
- provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
244
+ provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
245
245
  disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
246
246
  idToken: better_auth.ZodOptional<better_auth.ZodObject<{
247
247
  token: better_auth.ZodString;
@@ -268,7 +268,7 @@ declare class AuthManager {
268
268
  callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
269
269
  newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
270
270
  errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
271
- provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
271
+ provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
272
272
  disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
273
273
  idToken: better_auth.ZodOptional<better_auth.ZodObject<{
274
274
  token: better_auth.ZodString;
@@ -1847,7 +1847,7 @@ declare class AuthManager {
1847
1847
  requireHeaders: true;
1848
1848
  body: better_auth.ZodObject<{
1849
1849
  callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
1850
- provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
1850
+ provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
1851
1851
  idToken: better_auth.ZodOptional<better_auth.ZodObject<{
1852
1852
  token: better_auth.ZodString;
1853
1853
  nonce: better_auth.ZodOptional<better_auth.ZodString>;
package/dist/index.d.ts CHANGED
@@ -241,7 +241,7 @@ declare class AuthManager {
241
241
  callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
242
242
  newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
243
243
  errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
244
- provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
244
+ provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
245
245
  disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
246
246
  idToken: better_auth.ZodOptional<better_auth.ZodObject<{
247
247
  token: better_auth.ZodString;
@@ -268,7 +268,7 @@ declare class AuthManager {
268
268
  callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
269
269
  newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
270
270
  errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
271
- provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
271
+ provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
272
272
  disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
273
273
  idToken: better_auth.ZodOptional<better_auth.ZodObject<{
274
274
  token: better_auth.ZodString;
@@ -1847,7 +1847,7 @@ declare class AuthManager {
1847
1847
  requireHeaders: true;
1848
1848
  body: better_auth.ZodObject<{
1849
1849
  callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
1850
- provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
1850
+ provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
1851
1851
  idToken: better_auth.ZodOptional<better_auth.ZodObject<{
1852
1852
  token: better_auth.ZodString;
1853
1853
  nonce: better_auth.ZodOptional<better_auth.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/plugin-auth",
3
- "version": "3.2.9",
3
+ "version": "3.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Authentication & Identity Plugin for ObjectStack",
6
6
  "main": "dist/index.js",
@@ -14,15 +14,15 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "better-auth": "^1.5.5",
18
- "@objectstack/core": "3.2.9",
19
- "@objectstack/spec": "3.2.9"
17
+ "better-auth": "^1.5.6",
18
+ "@objectstack/core": "3.3.0",
19
+ "@objectstack/spec": "3.3.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^25.5.0",
23
23
  "typescript": "^5.0.0",
24
24
  "vitest": "^4.1.0",
25
- "@objectstack/cli": "3.2.9"
25
+ "@objectstack/cli": "3.3.0"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsup --config ../../../tsup.config.ts",
@@ -299,6 +299,7 @@ describe('AuthPlugin', () => {
299
299
  baseUrl: 'http://localhost:3000',
300
300
  });
301
301
  mockContext.hook = localHookCapture.hookFn;
302
+ (mockContext.registerService as any).mockClear();
302
303
  await localPlugin.init(mockContext);
303
304
 
304
305
  const mockRawApp = { all: vi.fn() };
@@ -314,7 +315,7 @@ describe('AuthPlugin', () => {
314
315
  throw new Error(`Service not found: ${name}`);
315
316
  });
316
317
 
317
- const registeredAuthManager = (mockContext.registerService as any).mock.calls.at(-1)[1];
318
+ const registeredAuthManager = (mockContext.registerService as any).mock.calls[0][1];
318
319
  const setRuntimeSpy = vi.spyOn(registeredAuthManager, 'setRuntimeBaseUrl');
319
320
 
320
321
  await localPlugin.start(mockContext);
@@ -330,6 +331,7 @@ describe('AuthPlugin', () => {
330
331
  secret: 'test-secret-at-least-32-chars-long',
331
332
  });
332
333
  mockContext.hook = localHookCapture.hookFn;
334
+ (mockContext.registerService as any).mockClear();
333
335
  await localPlugin.init(mockContext);
334
336
 
335
337
  const mockRawApp = { all: vi.fn() };
@@ -345,7 +347,7 @@ describe('AuthPlugin', () => {
345
347
  throw new Error(`Service not found: ${name}`);
346
348
  });
347
349
 
348
- const registeredAuthManager = (mockContext.registerService as any).mock.calls.at(-1)[1];
350
+ const registeredAuthManager = (mockContext.registerService as any).mock.calls[0][1];
349
351
  const setRuntimeSpy = vi.spyOn(registeredAuthManager, 'setRuntimeBaseUrl');
350
352
 
351
353
  await localPlugin.start(mockContext);