remix 3.0.0-beta.6 → 3.0.0-rc.1
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/README.md +2 -0
- package/dist/spa.d.ts +2 -0
- package/dist/spa.d.ts.map +1 -0
- package/dist/spa.js +2 -0
- package/package.json +34 -28
- package/schema/remix.json +290 -0
- package/src/assets/README.md +85 -92
- package/src/auth/README.md +51 -15
- package/src/cli/README.md +52 -3
- package/src/data-table/README.md +18 -5
- package/src/node-hmr/README.md +0 -1
- package/src/render-middleware/README.md +71 -56
- package/src/spa/README.md +96 -0
- package/src/spa.ts +2 -0
- package/src/static-middleware/README.md +1 -1
- package/src/test/README.md +1 -1
- package/src/ui/README.md +86 -20
- package/src/ui/server/README.md +13 -0
- package/src/ui-hmr/README.md +0 -1
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ remix completion bash >> ~/.bashrc
|
|
|
26
26
|
remix doctor
|
|
27
27
|
remix doctor --fix
|
|
28
28
|
remix db migrate
|
|
29
|
+
remix db rollback
|
|
29
30
|
remix db status
|
|
30
31
|
remix routes
|
|
31
32
|
remix routes --table
|
|
@@ -45,6 +46,7 @@ await runRemix(['completion', 'bash'])
|
|
|
45
46
|
await runRemix(['doctor'])
|
|
46
47
|
await runRemix(['doctor', '--fix'])
|
|
47
48
|
await runRemix(['db', 'migrate'])
|
|
49
|
+
await runRemix(['db', 'rollback'])
|
|
48
50
|
await runRemix(['db', 'status'])
|
|
49
51
|
await runRemix(['routes'])
|
|
50
52
|
await runRemix(['routes', '--table'])
|
package/dist/spa.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spa.d.ts","sourceRoot":"","sources":["../src/spa.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAA"}
|
package/dist/spa.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remix",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-rc.1",
|
|
4
4
|
"description": "The Remix web framework",
|
|
5
5
|
"author": "Michael Jackson <mjijackson@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"LICENSE",
|
|
15
15
|
"README.md",
|
|
16
16
|
"dist",
|
|
17
|
+
"schema",
|
|
17
18
|
"src"
|
|
18
19
|
],
|
|
19
20
|
"type": "module",
|
|
@@ -355,6 +356,10 @@
|
|
|
355
356
|
"types": "./dist/session-storage-redis.d.ts",
|
|
356
357
|
"default": "./dist/session-storage-redis.js"
|
|
357
358
|
},
|
|
359
|
+
"./spa": {
|
|
360
|
+
"types": "./dist/spa.d.ts",
|
|
361
|
+
"default": "./dist/spa.js"
|
|
362
|
+
},
|
|
358
363
|
"./tar-parser": {
|
|
359
364
|
"types": "./dist/tar-parser.d.ts",
|
|
360
365
|
"default": "./dist/tar-parser.js"
|
|
@@ -507,52 +512,53 @@
|
|
|
507
512
|
"typescript": "^7.0.2"
|
|
508
513
|
},
|
|
509
514
|
"dependencies": {
|
|
510
|
-
"@remix-run/assets": "^0.
|
|
515
|
+
"@remix-run/assets": "^0.6.0",
|
|
516
|
+
"@remix-run/auth": "^0.3.0",
|
|
511
517
|
"@remix-run/async-context-middleware": "^0.3.5",
|
|
512
|
-
"@remix-run/compression-middleware": "^0.1.13",
|
|
513
518
|
"@remix-run/auth-middleware": "^0.2.5",
|
|
514
|
-
"@remix-run/ui": "^0.
|
|
519
|
+
"@remix-run/ui": "^0.8.0",
|
|
520
|
+
"@remix-run/compression-middleware": "^0.1.13",
|
|
515
521
|
"@remix-run/cop-middleware": "^0.1.8",
|
|
516
|
-
"@remix-run/auth": "^0.2.7",
|
|
517
|
-
"@remix-run/cookie": "^0.6.0",
|
|
518
|
-
"@remix-run/csrf-middleware": "^0.1.8",
|
|
519
522
|
"@remix-run/cors-middleware": "^0.1.8",
|
|
520
|
-
"@remix-run/
|
|
521
|
-
"@remix-run/
|
|
523
|
+
"@remix-run/csrf-middleware": "^0.1.8",
|
|
524
|
+
"@remix-run/cookie": "^0.6.0",
|
|
525
|
+
"@remix-run/data-table-postgres": "^0.5.1",
|
|
522
526
|
"@remix-run/data-schema": "^0.3.0",
|
|
523
|
-
"@remix-run/data-table
|
|
524
|
-
"@remix-run/data-table-
|
|
527
|
+
"@remix-run/data-table": "^0.5.0",
|
|
528
|
+
"@remix-run/data-table-mysql": "^0.5.1",
|
|
525
529
|
"@remix-run/fetch-proxy": "^0.8.5",
|
|
526
530
|
"@remix-run/file-storage": "^0.13.7",
|
|
527
|
-
"@remix-run/
|
|
531
|
+
"@remix-run/file-storage-s3": "^0.1.4",
|
|
528
532
|
"@remix-run/form-data-middleware": "^0.3.5",
|
|
529
533
|
"@remix-run/form-data-parser": "^0.17.5",
|
|
530
|
-
"@remix-run/
|
|
534
|
+
"@remix-run/fetch-router": "^0.21.0",
|
|
535
|
+
"@remix-run/data-table-sqlite": "^0.6.1",
|
|
531
536
|
"@remix-run/fs": "^0.4.6",
|
|
537
|
+
"@remix-run/headers": "^0.21.1",
|
|
532
538
|
"@remix-run/lazy-file": "^5.0.6",
|
|
533
|
-
"@remix-run/method-override-middleware": "^0.1.13",
|
|
534
539
|
"@remix-run/logger-middleware": "^0.3.5",
|
|
535
|
-
"@remix-run/
|
|
536
|
-
"@remix-run/
|
|
540
|
+
"@remix-run/html-template": "^0.3.1",
|
|
541
|
+
"@remix-run/method-override-middleware": "^0.1.13",
|
|
537
542
|
"@remix-run/mime": "^0.4.2",
|
|
543
|
+
"@remix-run/multipart-parser": "^0.16.4",
|
|
538
544
|
"@remix-run/node-fetch-server": "^0.14.1",
|
|
539
|
-
"@remix-run/html-template": "^0.3.1",
|
|
540
|
-
"@remix-run/response": "^0.3.8",
|
|
541
|
-
"@remix-run/route-pattern": "^0.24.0",
|
|
542
545
|
"@remix-run/node-tsx": "^0.1.1",
|
|
546
|
+
"@remix-run/response": "^0.3.8",
|
|
543
547
|
"@remix-run/session-middleware": "^0.4.0",
|
|
544
|
-
"@remix-run/session
|
|
545
|
-
"@remix-run/session-storage-memcache": "^0.1.2",
|
|
546
|
-
"@remix-run/static-middleware": "^0.4.13",
|
|
548
|
+
"@remix-run/session": "^0.4.2",
|
|
547
549
|
"@remix-run/tar-parser": "^0.7.1",
|
|
548
550
|
"@remix-run/assert": "^0.3.0",
|
|
549
|
-
"@remix-run/
|
|
550
|
-
"@remix-run/
|
|
551
|
-
"@remix-run/
|
|
551
|
+
"@remix-run/cli": "^0.6.0",
|
|
552
|
+
"@remix-run/session-storage-redis": "^0.1.1",
|
|
553
|
+
"@remix-run/route-pattern": "^0.24.0",
|
|
554
|
+
"@remix-run/render-middleware": "^0.2.0",
|
|
552
555
|
"@remix-run/ui-hmr": "^0.1.0",
|
|
553
|
-
"@remix-run/
|
|
556
|
+
"@remix-run/node-hmr": "^0.1.0",
|
|
557
|
+
"@remix-run/spa": "^0.1.0",
|
|
558
|
+
"@remix-run/static-middleware": "^0.4.14",
|
|
554
559
|
"@remix-run/terminal": "^0.1.1",
|
|
555
|
-
"@remix-run/
|
|
560
|
+
"@remix-run/session-storage-memcache": "^0.1.2",
|
|
561
|
+
"@remix-run/test": "^0.6.0"
|
|
556
562
|
},
|
|
557
563
|
"bin": {
|
|
558
564
|
"remix": "./dist/cli-entry.js"
|
|
@@ -580,7 +586,7 @@
|
|
|
580
586
|
"scripts": {
|
|
581
587
|
"build": "tsc -p tsconfig.build.json && node ../../scripts/copy-package-type-only-exports.ts .",
|
|
582
588
|
"clean": "git clean -fdX",
|
|
583
|
-
"sync-
|
|
589
|
+
"sync-package-files": "node ../../scripts/sync-remix-package-files.ts",
|
|
584
590
|
"test": "remix test",
|
|
585
591
|
"typecheck": "tsc --noEmit"
|
|
586
592
|
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Remix CLI configuration",
|
|
4
|
+
"description": "Configuration for the Remix command-line interface.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "JSON Schema used by editors to validate this file."
|
|
11
|
+
},
|
|
12
|
+
"assets": {
|
|
13
|
+
"$ref": "#/$defs/assets"
|
|
14
|
+
},
|
|
15
|
+
"db": {
|
|
16
|
+
"$ref": "#/$defs/db"
|
|
17
|
+
},
|
|
18
|
+
"doctor": {
|
|
19
|
+
"$ref": "#/$defs/doctor"
|
|
20
|
+
},
|
|
21
|
+
"test": {
|
|
22
|
+
"$ref": "#/$defs/test"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"assets": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["allowFiles", "basePath"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"allowFiles": {
|
|
32
|
+
"$ref": "#/$defs/stringArray",
|
|
33
|
+
"description": "File paths and glob patterns that may be served."
|
|
34
|
+
},
|
|
35
|
+
"allowPackages": {
|
|
36
|
+
"$ref": "#/$defs/stringArray",
|
|
37
|
+
"description": "Package names whose files and dependencies may be served."
|
|
38
|
+
},
|
|
39
|
+
"basePath": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Public URL prefix for served assets."
|
|
42
|
+
},
|
|
43
|
+
"denyFiles": {
|
|
44
|
+
"$ref": "#/$defs/stringArray",
|
|
45
|
+
"description": "File paths and glob patterns that must not be served."
|
|
46
|
+
},
|
|
47
|
+
"mounts": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"description": "Directories keyed by public URL paths relative to basePath.",
|
|
50
|
+
"additionalProperties": { "type": "string" }
|
|
51
|
+
},
|
|
52
|
+
"files": {
|
|
53
|
+
"$ref": "#/$defs/assetsFiles"
|
|
54
|
+
},
|
|
55
|
+
"rootDir": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Root directory for asset file paths, relative to this config file."
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"assetsFiles": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["extensions"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"extensions": {
|
|
67
|
+
"$ref": "#/$defs/stringArray",
|
|
68
|
+
"description": "Additional file extensions served without script or style compilation."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"db": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": ["adapter"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"adapter": {
|
|
78
|
+
"oneOf": [
|
|
79
|
+
{ "$ref": "#/$defs/dbSqliteAdapter" },
|
|
80
|
+
{ "$ref": "#/$defs/dbPostgresAdapter" },
|
|
81
|
+
{ "$ref": "#/$defs/dbMysqlAdapter" }
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"migrations": {
|
|
85
|
+
"$ref": "#/$defs/dbMigrations"
|
|
86
|
+
},
|
|
87
|
+
"seed": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "Path to a SQL seed file."
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"dbString": {
|
|
94
|
+
"oneOf": [
|
|
95
|
+
{ "type": "string" },
|
|
96
|
+
{
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["env"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"env": { "type": "string" },
|
|
102
|
+
"default": { "type": "string" }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"dbSqliteAdapter": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": ["type", "filename"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"type": { "const": "sqlite" },
|
|
113
|
+
"filename": { "$ref": "#/$defs/dbString" },
|
|
114
|
+
"foreignKeys": { "type": "boolean" },
|
|
115
|
+
"busyTimeout": { "type": "number", "minimum": 0 }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"dbPostgresAdapter": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"required": ["type", "connectionString"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"type": { "const": "postgres" },
|
|
124
|
+
"connectionString": { "$ref": "#/$defs/dbString" },
|
|
125
|
+
"maintenanceDatabase": { "type": "string" },
|
|
126
|
+
"template": { "type": "string" }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"dbMysqlAdapter": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["type", "uri"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"type": { "const": "mysql" },
|
|
135
|
+
"uri": { "$ref": "#/$defs/dbString" },
|
|
136
|
+
"characterSet": { "type": "string" },
|
|
137
|
+
"collation": { "type": "string" }
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"dbMigrations": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"required": ["directory"],
|
|
144
|
+
"properties": {
|
|
145
|
+
"directory": { "type": "string" },
|
|
146
|
+
"journalTable": { "type": "string" }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"doctor": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"properties": {
|
|
153
|
+
"strict": {
|
|
154
|
+
"type": "boolean",
|
|
155
|
+
"description": "Whether doctor exits with status 1 when warning-level findings are present."
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"stringArray": {
|
|
160
|
+
"type": "array",
|
|
161
|
+
"items": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"test": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"properties": {
|
|
169
|
+
"browserFiles": {
|
|
170
|
+
"$ref": "#/$defs/stringArray",
|
|
171
|
+
"description": "Glob patterns for browser test files."
|
|
172
|
+
},
|
|
173
|
+
"concurrency": {
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"minimum": 1,
|
|
176
|
+
"description": "Maximum number of concurrent test workers."
|
|
177
|
+
},
|
|
178
|
+
"coverage": {
|
|
179
|
+
"$ref": "#/$defs/coverage"
|
|
180
|
+
},
|
|
181
|
+
"e2eFiles": {
|
|
182
|
+
"$ref": "#/$defs/stringArray",
|
|
183
|
+
"description": "Glob patterns for end-to-end test files."
|
|
184
|
+
},
|
|
185
|
+
"exclude": {
|
|
186
|
+
"$ref": "#/$defs/stringArray",
|
|
187
|
+
"description": "Glob patterns excluded from test discovery."
|
|
188
|
+
},
|
|
189
|
+
"files": {
|
|
190
|
+
"$ref": "#/$defs/stringArray",
|
|
191
|
+
"description": "Glob patterns for all test files."
|
|
192
|
+
},
|
|
193
|
+
"only": {
|
|
194
|
+
"$ref": "#/$defs/stringArray",
|
|
195
|
+
"description": "Regular expression patterns used to focus tests by full name."
|
|
196
|
+
},
|
|
197
|
+
"playwright": {
|
|
198
|
+
"$ref": "#/$defs/playwright"
|
|
199
|
+
},
|
|
200
|
+
"pool": {
|
|
201
|
+
"enum": ["forks", "threads"],
|
|
202
|
+
"description": "Worker pool used for server and end-to-end tests."
|
|
203
|
+
},
|
|
204
|
+
"quiet": {
|
|
205
|
+
"type": "boolean",
|
|
206
|
+
"description": "Whether skipped tests are omitted from reporter output."
|
|
207
|
+
},
|
|
208
|
+
"reporter": {
|
|
209
|
+
"enum": ["spec", "files", "tap", "dot"],
|
|
210
|
+
"description": "Reporter used for test output."
|
|
211
|
+
},
|
|
212
|
+
"setup": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "Path to a module exporting globalSetup and/or globalTeardown."
|
|
215
|
+
},
|
|
216
|
+
"type": {
|
|
217
|
+
"type": "array",
|
|
218
|
+
"items": {
|
|
219
|
+
"enum": ["server", "browser", "e2e"]
|
|
220
|
+
},
|
|
221
|
+
"description": "Test types to run."
|
|
222
|
+
},
|
|
223
|
+
"watch": {
|
|
224
|
+
"type": "boolean",
|
|
225
|
+
"description": "Whether tests rerun when files change."
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"coverage": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"properties": {
|
|
233
|
+
"branches": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"description": "Minimum branch coverage percentage."
|
|
236
|
+
},
|
|
237
|
+
"dir": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"description": "Directory where coverage reports are written."
|
|
240
|
+
},
|
|
241
|
+
"enabled": {
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"description": "Whether coverage is collected."
|
|
244
|
+
},
|
|
245
|
+
"exclude": {
|
|
246
|
+
"$ref": "#/$defs/stringArray",
|
|
247
|
+
"description": "Glob patterns excluded from coverage."
|
|
248
|
+
},
|
|
249
|
+
"functions": {
|
|
250
|
+
"type": "number",
|
|
251
|
+
"description": "Minimum function coverage percentage."
|
|
252
|
+
},
|
|
253
|
+
"include": {
|
|
254
|
+
"$ref": "#/$defs/stringArray",
|
|
255
|
+
"description": "Glob patterns included in coverage."
|
|
256
|
+
},
|
|
257
|
+
"lines": {
|
|
258
|
+
"type": "number",
|
|
259
|
+
"description": "Minimum line coverage percentage."
|
|
260
|
+
},
|
|
261
|
+
"statements": {
|
|
262
|
+
"type": "number",
|
|
263
|
+
"description": "Minimum statement coverage percentage."
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"playwright": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"additionalProperties": false,
|
|
270
|
+
"properties": {
|
|
271
|
+
"configFile": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Path to a Playwright configuration file."
|
|
274
|
+
},
|
|
275
|
+
"echo": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"description": "Whether browser console output is echoed to stdout."
|
|
278
|
+
},
|
|
279
|
+
"open": {
|
|
280
|
+
"type": "boolean",
|
|
281
|
+
"description": "Whether the browser remains open after tests finish."
|
|
282
|
+
},
|
|
283
|
+
"projects": {
|
|
284
|
+
"$ref": "#/$defs/stringArray",
|
|
285
|
+
"description": "Playwright project names to run."
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|