@auth/solid-start 0.6.1 → 0.7.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/index.d.ts CHANGED
@@ -13,8 +13,6 @@
13
13
  * npm install @auth/core @auth/solid-start
14
14
  * ```
15
15
  *
16
- * We recommended to using [create-jd-app](https://github.com/OrJDev/create-jd-app)
17
- *
18
16
  * @module @auth/solid-start
19
17
  */
20
18
  import type { AuthConfig, Session } from "@auth/core/types";
@@ -36,7 +34,7 @@ export interface SolidAuthConfig extends AuthConfig {
36
34
  *
37
35
  * ## Creating the API handler
38
36
  *
39
- * in this example we are using github so make sure to set the following environment variables:
37
+ * This example uses github, make sure to set the following environment variables:
40
38
  *
41
39
  * ```
42
40
  * GITHUB_ID=your_github_oauth_id
@@ -86,7 +84,7 @@ export interface SolidAuthConfig extends AuthConfig {
86
84
  *
87
85
  * ### When Using SSR
88
86
  *
89
- * When using SSR, I recommend creating a `Protected` component that will trigger suspense using the `Show` component. It should look like this:
87
+ * When using SSR, it is recommended to create a `Protected` component that will trigger suspense using the `Show` component. It should look like this:
90
88
  *
91
89
  *
92
90
  * ```tsx
@@ -150,7 +148,7 @@ export interface SolidAuthConfig extends AuthConfig {
150
148
  *
151
149
  * ### When Using CSR
152
150
  *
153
- * When using CSR, the `Protected` component will not work as expected and will cause the screen to flash, so I had to come up with a tricky solution, we will use a Solid-Start middleware:
151
+ * When using CSR, the `Protected` component will not work as expected and will cause the screen to flash. To fix this, a Solid-Start middleware is used:
154
152
  *
155
153
  * ```tsx
156
154
  * // entry-server.tsx
@@ -182,7 +180,7 @@ export interface SolidAuthConfig extends AuthConfig {
182
180
  * );
183
181
  * ```
184
182
  *
185
- * And now you can easily create a protected route:
183
+ * And now a protected route can be created:
186
184
  *
187
185
  *
188
186
  * ```tsx
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AA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AG;gBAGF,GAAG;EAIxB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;AAEtD,wBAAsB,UAAU,CAC9B,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,GAC/B,gBAAgB,CAiBlB"}
package/index.js CHANGED
@@ -13,8 +13,6 @@
13
13
  * npm install @auth/core @auth/solid-start
14
14
  * ```
15
15
  *
16
- * We recommended to using [create-jd-app](https://github.com/OrJDev/create-jd-app)
17
- *
18
16
  * @module @auth/solid-start
19
17
  */
20
18
  import { Auth } from "@auth/core";
@@ -52,7 +50,7 @@ function SolidAuthHandler(prefix, authOptions) {
52
50
  *
53
51
  * ## Creating the API handler
54
52
  *
55
- * in this example we are using github so make sure to set the following environment variables:
53
+ * This example uses github, make sure to set the following environment variables:
56
54
  *
57
55
  * ```
58
56
  * GITHUB_ID=your_github_oauth_id
@@ -102,7 +100,7 @@ function SolidAuthHandler(prefix, authOptions) {
102
100
  *
103
101
  * ### When Using SSR
104
102
  *
105
- * When using SSR, I recommend creating a `Protected` component that will trigger suspense using the `Show` component. It should look like this:
103
+ * When using SSR, it is recommended to create a `Protected` component that will trigger suspense using the `Show` component. It should look like this:
106
104
  *
107
105
  *
108
106
  * ```tsx
@@ -166,7 +164,7 @@ function SolidAuthHandler(prefix, authOptions) {
166
164
  *
167
165
  * ### When Using CSR
168
166
  *
169
- * When using CSR, the `Protected` component will not work as expected and will cause the screen to flash, so I had to come up with a tricky solution, we will use a Solid-Start middleware:
167
+ * When using CSR, the `Protected` component will not work as expected and will cause the screen to flash. To fix this, a Solid-Start middleware is used:
170
168
  *
171
169
  * ```tsx
172
170
  * // entry-server.tsx
@@ -198,7 +196,7 @@ function SolidAuthHandler(prefix, authOptions) {
198
196
  * );
199
197
  * ```
200
198
  *
201
- * And now you can easily create a protected route:
199
+ * And now a protected route can be created:
202
200
  *
203
201
  *
204
202
  * ```tsx
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@auth/solid-start",
3
3
  "description": "Authentication for SolidStart.",
4
- "version": "0.6.1",
4
+ "version": "0.7.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "*.js",
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@auth/core": "0.27.0"
29
+ "@auth/core": "0.28.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@solidjs/meta": "^0.28.0",
@@ -49,7 +49,7 @@
49
49
  "scripts": {
50
50
  "build": "tsc",
51
51
  "patch": "npm version patch --no-git-tag-version",
52
- "test": "vitest -c ../utils/vitest.config.ts",
52
+ "test": "vitest run -c ../utils/vitest.config.ts",
53
53
  "clean": "rm -rf *.js *.d.ts*"
54
54
  }
55
55
  }
package/src/index.ts CHANGED
@@ -13,8 +13,6 @@
13
13
  * npm install @auth/core @auth/solid-start
14
14
  * ```
15
15
  *
16
- * We recommended to using [create-jd-app](https://github.com/OrJDev/create-jd-app)
17
- *
18
16
  * @module @auth/solid-start
19
17
  */
20
18
 
@@ -67,7 +65,7 @@ function SolidAuthHandler(prefix: string, authOptions: SolidAuthConfig) {
67
65
  *
68
66
  * ## Creating the API handler
69
67
  *
70
- * in this example we are using github so make sure to set the following environment variables:
68
+ * This example uses github, make sure to set the following environment variables:
71
69
  *
72
70
  * ```
73
71
  * GITHUB_ID=your_github_oauth_id
@@ -117,7 +115,7 @@ function SolidAuthHandler(prefix: string, authOptions: SolidAuthConfig) {
117
115
  *
118
116
  * ### When Using SSR
119
117
  *
120
- * When using SSR, I recommend creating a `Protected` component that will trigger suspense using the `Show` component. It should look like this:
118
+ * When using SSR, it is recommended to create a `Protected` component that will trigger suspense using the `Show` component. It should look like this:
121
119
  *
122
120
  *
123
121
  * ```tsx
@@ -181,7 +179,7 @@ function SolidAuthHandler(prefix: string, authOptions: SolidAuthConfig) {
181
179
  *
182
180
  * ### When Using CSR
183
181
  *
184
- * When using CSR, the `Protected` component will not work as expected and will cause the screen to flash, so I had to come up with a tricky solution, we will use a Solid-Start middleware:
182
+ * When using CSR, the `Protected` component will not work as expected and will cause the screen to flash. To fix this, a Solid-Start middleware is used:
185
183
  *
186
184
  * ```tsx
187
185
  * // entry-server.tsx
@@ -213,7 +211,7 @@ function SolidAuthHandler(prefix: string, authOptions: SolidAuthConfig) {
213
211
  * );
214
212
  * ```
215
213
  *
216
- * And now you can easily create a protected route:
214
+ * And now a protected route can be created:
217
215
  *
218
216
  *
219
217
  * ```tsx