rebuildjs 0.56.3 → 0.58.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebuildjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reactive",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"./package.json": "./package.json"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"ctx-core": "^
|
|
58
|
+
"ctx-core": "^6.0.0",
|
|
59
59
|
"elysia": "^0.8.16",
|
|
60
60
|
"esbuild": "^0.20.0",
|
|
61
61
|
"fdir": "^6.1.1",
|
package/server/app/index.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ctx_T, ctx_ } from 'ctx-core/be'
|
|
2
2
|
import type { Equal, Expect } from 'ctx-core/test'
|
|
3
3
|
import { resolve } from 'node:path'
|
|
4
4
|
import { test } from 'uvu'
|
|
@@ -48,7 +48,7 @@ test('app_ctx', ()=>{
|
|
|
48
48
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
49
49
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
50
50
|
// @ts-ignore TS6196
|
|
51
|
-
type test_app_ctx = Expect<Equal<typeof app_ctx,
|
|
51
|
+
type test_app_ctx = Expect<Equal<typeof app_ctx, ctx_T<'app'>>>
|
|
52
52
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
53
53
|
/* eslint-enable @typescript-eslint/ban-ts-comment */
|
|
54
54
|
})
|
package/server/asset/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ctx__be_T, ctx__get_T, ctx__set_T } from 'ctx-core/be'
|
|
2
2
|
import type { lock_memosig_T } from 'ctx-core/rmemo'
|
|
3
|
-
import type {
|
|
3
|
+
import type { request_wide_ctx_T } from '../ctx/index.js'
|
|
4
4
|
export declare const assets$_:ctx__be_T<lock_memosig_T<assets_T>, 'request'>
|
|
5
5
|
export declare const assets_:ctx__get_T<assets_T, 'request'>
|
|
6
6
|
export declare const assets__set:ctx__set_T<assets_T, 'request'>
|
|
7
|
-
export declare function assets__assign<ctx_T extends
|
|
7
|
+
export declare function assets__assign<ctx_T extends request_wide_ctx_T>(
|
|
8
8
|
ctx:ctx_T,
|
|
9
9
|
..._assets_a:Partial<assets_T>[]
|
|
10
10
|
):assets_T
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ctx_T, ctx_, ns_ctx_ } from 'ctx-core/be'
|
|
2
2
|
import type { Equal, Expect } from 'ctx-core/test'
|
|
3
3
|
import { test } from 'uvu'
|
|
4
4
|
import { equal, throws } from 'uvu/assert'
|
|
@@ -55,7 +55,7 @@ test('assets|types', ()=>{
|
|
|
55
55
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
56
56
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
57
57
|
// @ts-ignore TS6196
|
|
58
|
-
type test_ctx = Expect<Equal<typeof request_ctx,
|
|
58
|
+
type test_ctx = Expect<Equal<typeof request_ctx, ctx_T<''|'app'|'middleware'|'request'>>>
|
|
59
59
|
// @ts-expect-error TS2345
|
|
60
60
|
type test_assets$_ = Expect<Equal<typeof assets$_, number>>
|
|
61
61
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
package/server/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ctx__be_T, ctx__get_T, ctx__set_T, nullish, rmemo__wait_ret_T, rmemo_T, sig_T } from 'ctx-core/rmemo'
|
|
2
2
|
import type { BuildContext, BuildOptions, Plugin } from 'esbuild'
|
|
3
|
-
import type {
|
|
3
|
+
import type { app_wide_ctx_T } from '../ctx/index.js'
|
|
4
4
|
import type { rebuildjs_metafile_T } from '../metafile_l0/index.js'
|
|
5
5
|
export declare const build_id$_:ctx__be_T<sig_T<string|undefined>, 'app'>
|
|
6
6
|
export declare const build_id_:ctx__get_T<string|undefined, 'app'>
|
package/server/ctx/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ctx_T, wide_ctx_T } from 'ctx-core/be'
|
|
2
2
|
export declare const app_ctx:app_ctx_T
|
|
3
3
|
export declare function middleware_ctx__new():middleware_ctx_T
|
|
4
4
|
export declare function request_ctx__new(middleware_ctx:middleware_ctx_T):request_ctx_T
|
|
5
|
-
export type app_ctx_T =
|
|
6
|
-
export type middleware_ctx_T =
|
|
7
|
-
export type request_ctx_T =
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
5
|
+
export type app_ctx_T = ctx_T<'app'>
|
|
6
|
+
export type middleware_ctx_T = ctx_T<'middleware'|'app'>
|
|
7
|
+
export type request_ctx_T = ctx_T<''|'request'|'middleware'|'app'>
|
|
8
|
+
export type app_wide_ctx_T = wide_ctx_T<'app'>
|
|
9
|
+
export type middleware_wide_ctx_T = wide_ctx_T<'middleware'>
|
|
10
|
+
export type request_wide_ctx_T = wide_ctx_T<'request'>
|
package/server/ctx/index.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { be_, type
|
|
1
|
+
import { be_, type ctx_T } from 'ctx-core/be'
|
|
2
2
|
import type { Equal, Expect } from 'ctx-core/test'
|
|
3
3
|
import { test } from 'uvu'
|
|
4
4
|
import { equal } from 'uvu/assert'
|
|
@@ -13,7 +13,7 @@ test('app_ctx', ()=>{
|
|
|
13
13
|
equal(ns_app_(app_ctx), 'app')
|
|
14
14
|
})
|
|
15
15
|
test('app_ctx|ns', ()=>{
|
|
16
|
-
type test_app_ctx = Expect<Equal<typeof app_ctx,
|
|
16
|
+
type test_app_ctx = Expect<Equal<typeof app_ctx, ctx_T<'app'>>>
|
|
17
17
|
equal({} as test_app_ctx, {})
|
|
18
18
|
})
|
|
19
19
|
test('middleware_ctx__new', ()=>{
|
|
@@ -29,7 +29,7 @@ test('middleware_ctx__new', ()=>{
|
|
|
29
29
|
})
|
|
30
30
|
test('middleware_ctx|ns', ()=>{
|
|
31
31
|
const middleware_ctx = middleware_ctx__new()
|
|
32
|
-
type test_middleware_ctx = Expect<Equal<typeof middleware_ctx,
|
|
32
|
+
type test_middleware_ctx = Expect<Equal<typeof middleware_ctx, ctx_T<'app'|'middleware'>>>
|
|
33
33
|
equal({} as test_middleware_ctx, {})
|
|
34
34
|
})
|
|
35
35
|
test('request_ctx__new', ()=>{
|
|
@@ -53,7 +53,7 @@ test('request_ctx__new', ()=>{
|
|
|
53
53
|
})
|
|
54
54
|
test('request_ctx|ns', ()=>{
|
|
55
55
|
const request_ctx = request_ctx__new(middleware_ctx__new())
|
|
56
|
-
type test_request_ctx = Expect<Equal<typeof request_ctx,
|
|
56
|
+
type test_request_ctx = Expect<Equal<typeof request_ctx, ctx_T<''|'app'|'middleware'|'request'>>>
|
|
57
57
|
equal({} as test_request_ctx, {})
|
|
58
58
|
})
|
|
59
59
|
test.run()
|