@platformatic/remix 3.45.0 → 3.47.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/config.d.ts +1 -0
- package/index.d.ts +34 -0
- package/lib/capability.js +4 -2
- package/lib/schema.js +3 -0
- package/package.json +9 -7
- package/schema.json +4 -1
package/config.d.ts
CHANGED
package/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseCapability, BaseContext, BaseOptions } from '@platformatic/basic'
|
|
2
|
+
import { Configuration, ConfigurationOptions } from '@platformatic/foundation'
|
|
3
|
+
import { JSONSchemaType } from 'ajv'
|
|
4
|
+
import type { PlatformaticRemixConfig } from './config.d.ts'
|
|
5
|
+
|
|
6
|
+
export type { PlatformaticRemixConfig } from './config.d.ts'
|
|
7
|
+
|
|
8
|
+
export interface RemixContext extends BaseContext {}
|
|
9
|
+
|
|
10
|
+
export type RemixConfiguration = Configuration<PlatformaticRemixConfig>
|
|
11
|
+
|
|
12
|
+
export declare function transform (config: RemixConfiguration): Promise<RemixConfiguration>
|
|
13
|
+
|
|
14
|
+
export declare function loadConfiguration (
|
|
15
|
+
root: string | PlatformaticRemixConfig,
|
|
16
|
+
source?: string | PlatformaticRemixConfig,
|
|
17
|
+
context?: ConfigurationOptions
|
|
18
|
+
): Promise<RemixConfiguration>
|
|
19
|
+
|
|
20
|
+
export declare function create (
|
|
21
|
+
configOrRoot: string | PlatformaticRemixConfig,
|
|
22
|
+
sourceOrConfig?: string | PlatformaticRemixConfig,
|
|
23
|
+
context?: ConfigurationOptions
|
|
24
|
+
): Promise<RemixCapability>
|
|
25
|
+
|
|
26
|
+
export declare class RemixCapability extends BaseCapability<PlatformaticRemixConfig, BaseOptions<RemixContext>> {
|
|
27
|
+
constructor (root: string, config: PlatformaticRemixConfig, context?: object)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export declare const packageJson: Record<string, unknown>
|
|
31
|
+
export declare const schema: JSONSchemaType<PlatformaticRemixConfig>
|
|
32
|
+
export declare const schemaComponents: { remix: JSONSchemaType<object> }
|
|
33
|
+
export declare const version: string
|
|
34
|
+
export declare const supportedVersions: string
|
package/lib/capability.js
CHANGED
|
@@ -18,7 +18,7 @@ import { Readable } from 'node:stream'
|
|
|
18
18
|
import { satisfies } from 'semver'
|
|
19
19
|
import { packageJson } from './schema.js'
|
|
20
20
|
|
|
21
|
-
const supportedVersions = '^2.0.0'
|
|
21
|
+
export const supportedVersions = '^2.0.0'
|
|
22
22
|
|
|
23
23
|
export class RemixCapability extends ViteCapability {
|
|
24
24
|
#app
|
|
@@ -188,7 +188,9 @@ export class RemixCapability extends ViteCapability {
|
|
|
188
188
|
let ended = false
|
|
189
189
|
|
|
190
190
|
req.raw.on('aborted', () => ac.abort())
|
|
191
|
-
req.raw.on('end', () => {
|
|
191
|
+
req.raw.on('end', () => {
|
|
192
|
+
ended = true
|
|
193
|
+
})
|
|
192
194
|
req.raw.on('close', () => {
|
|
193
195
|
if (!ended) {
|
|
194
196
|
ac.abort()
|
package/lib/schema.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/remix",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.47.0",
|
|
4
4
|
"description": "Platformatic Remix Capability",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@fastify/static": "^8.0.0",
|
|
19
19
|
"fastify": "^5.7.0",
|
|
20
20
|
"semver": "^7.6.3",
|
|
21
|
-
"@platformatic/basic": "3.
|
|
22
|
-
"@platformatic/
|
|
23
|
-
"@platformatic/
|
|
21
|
+
"@platformatic/basic": "3.47.0",
|
|
22
|
+
"@platformatic/vite": "3.47.0",
|
|
23
|
+
"@platformatic/foundation": "3.47.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@remix-run/dev": "^2.16.8",
|
|
@@ -33,20 +33,22 @@
|
|
|
33
33
|
"fastify": "^5.7.0",
|
|
34
34
|
"isbot": "^5.1.17",
|
|
35
35
|
"json-schema-to-typescript": "^15.0.1",
|
|
36
|
+
"tstyche": "^6.2.0",
|
|
36
37
|
"neostandard": "^0.12.0",
|
|
37
38
|
"react": "^19.1.0",
|
|
38
39
|
"react-dom": "^19.1.0",
|
|
39
40
|
"typescript": "^5.5.4",
|
|
40
41
|
"vite": "^7.0.0",
|
|
41
42
|
"ws": "^8.18.0",
|
|
42
|
-
"@platformatic/
|
|
43
|
-
"@platformatic/
|
|
43
|
+
"@platformatic/service": "3.47.0",
|
|
44
|
+
"@platformatic/gateway": "3.47.0"
|
|
44
45
|
},
|
|
45
46
|
"engines": {
|
|
46
47
|
"node": ">=22.19.0"
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
|
-
"test": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
|
|
50
|
+
"test": "npm run test:types && node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
|
|
51
|
+
"test:types": "tstyche",
|
|
50
52
|
"gen-schema": "node lib/schema.js > schema.json",
|
|
51
53
|
"gen-types": "json2ts > config.d.ts < schema.json",
|
|
52
54
|
"build": "npm run gen-schema && npm run gen-types",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/remix/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/remix/3.47.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Remix Config",
|
|
5
5
|
"type": "object",
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
"$schema": {
|
|
8
8
|
"type": "string"
|
|
9
9
|
},
|
|
10
|
+
"module": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
10
13
|
"logger": {
|
|
11
14
|
"type": "object",
|
|
12
15
|
"properties": {
|