@cedarjs/internal 8.0.0-canary.3525 → 8.0.0-canary.3527

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,11 +1,12 @@
1
1
  import type { vi as _vi } from 'vitest'
2
2
 
3
- import type { CurrentUser } from '@cedarjs/auth'
3
+ import type { LoggedInUser } from '@cedarjs/auth'
4
4
 
5
5
  declare global {
6
6
  // describe, it, expect etc. are typed by @types/jest. Referencing
7
7
  // vitest/globals here would conflict with those declarations, so only vi
8
8
  // is declared
9
9
  const vi: typeof _vi
10
- const mockCurrentUser: (currentUser: CurrentUser) => void
10
+ // Partial: a mocked user only needs the fields the test uses
11
+ const mockCurrentUser: (currentUser: Partial<LoggedInUser> | null) => void
11
12
  }
@@ -1,6 +1,6 @@
1
1
  import type { vi as _vi } from 'vitest'
2
2
 
3
- import type { CurrentUser } from '@cedarjs/auth'
3
+ import type { LoggedInUser } from '@cedarjs/auth'
4
4
  import type {
5
5
  mockGraphQLMutation as _mockGraphQLMutation,
6
6
  mockGraphQLQuery as _mockGraphQLQuery,
@@ -11,7 +11,8 @@ declare global {
11
11
  // vitest/globals here would conflict with those declarations, so only vi
12
12
  // is declared
13
13
  const vi: typeof _vi
14
- const mockCurrentUser: (currentUser: CurrentUser) => void
14
+ // Partial: a mocked user only needs the fields the test uses
15
+ const mockCurrentUser: (currentUser: Partial<LoggedInUser> | null) => void
15
16
  const mockGraphQLQuery: typeof _mockGraphQLQuery
16
17
  const mockGraphQLMutation: typeof _mockGraphQLMutation
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/internal",
3
- "version": "8.0.0-canary.3525",
3
+ "version": "8.0.0-canary.3527",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -120,14 +120,14 @@
120
120
  "@babel/core": "^7.26.10",
121
121
  "@babel/parser": "7.29.9",
122
122
  "@babel/traverse": "7.29.10",
123
- "@cedarjs/api": "8.0.0-canary.3525",
124
- "@cedarjs/babel-config": "8.0.0-canary.3525",
125
- "@cedarjs/cli-helpers": "8.0.0-canary.3525",
126
- "@cedarjs/graphql-server": "8.0.0-canary.3525",
127
- "@cedarjs/project-config": "8.0.0-canary.3525",
128
- "@cedarjs/router": "8.0.0-canary.3525",
129
- "@cedarjs/structure": "8.0.0-canary.3525",
130
- "@cedarjs/utils": "8.0.0-canary.3525",
123
+ "@cedarjs/api": "8.0.0-canary.3527",
124
+ "@cedarjs/babel-config": "8.0.0-canary.3527",
125
+ "@cedarjs/cli-helpers": "8.0.0-canary.3527",
126
+ "@cedarjs/graphql-server": "8.0.0-canary.3527",
127
+ "@cedarjs/project-config": "8.0.0-canary.3527",
128
+ "@cedarjs/router": "8.0.0-canary.3527",
129
+ "@cedarjs/structure": "8.0.0-canary.3527",
130
+ "@cedarjs/utils": "8.0.0-canary.3527",
131
131
  "@graphql-codegen/add": "6.0.1",
132
132
  "@graphql-codegen/cli": "6.3.1",
133
133
  "@graphql-codegen/client-preset": "5.3.0",
@@ -165,7 +165,7 @@
165
165
  "vite-tsconfig-paths": "^6.1.1"
166
166
  },
167
167
  "devDependencies": {
168
- "@cedarjs/framework-tools": "8.0.0-canary.3525",
168
+ "@cedarjs/framework-tools": "8.0.0-canary.3527",
169
169
  "@jridgewell/trace-mapping": "0.3.31",
170
170
  "@oxc-project/types": "^0.155.0",
171
171
  "concurrently": "9.2.5",