Skip to content

Commit 4bb2b4b

Browse files
committed
Release 0.13.19
1 parent 48a1053 commit 4bb2b4b

14 files changed

Lines changed: 35 additions & 31 deletions

bin/build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ node_modules/.bin/tsc \
1616
--target ESNext \
1717
src/index.js
1818

19+
# Fix the generated types
20+
sed -i '' 's/#src\(.*\).js/#types\1.d.ts/' types/*.d.ts
21+
sed -i '' 's/^export {/export type {/' types/*.d.ts
22+
1923
node_modules/.bin/tsc || true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pave",
33
"type": "module",
4-
"version": "0.13.18",
4+
"version": "0.13.19",
55
"author": "Casey Foster <c@sey.me>",
66
"license": "MIT",
77
"repository": {

types/cache-execute.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export function cacheExecute({ cache, key, query }: {
55
key?: string;
66
query: Query;
77
}): any;
8-
import type { Query } from '#src/index.js';
8+
import type { Query } from '#types/index.d.ts';

types/create-client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export type Watcher = {
4747
onChange: (data: any) => void;
4848
query?: Query;
4949
};
50-
import type { Query } from '#src/index.js';
50+
import type { Query } from '#types/index.d.ts';

types/execute.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export function execute({ context, object, path, query, schema, type, value }: {
77
type: Type;
88
value?: any;
99
}): Promise<any>;
10-
import type { Query } from '#src/index.js';
11-
import type { Schema } from '#src/index.js';
12-
import type { Type } from '#src/index.js';
10+
import type { Query } from '#types/index.d.ts';
11+
import type { Schema } from '#types/index.d.ts';
12+
import type { Type } from '#types/index.d.ts';

types/get-query-cost.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export function getQueryCost<Context = any>({ context, path, query, schema, type
55
schema: Schema<string, {}, any>;
66
type: Type;
77
}): any;
8-
import type { Query } from '#src/index.js';
9-
import type { Schema } from '#src/index.js';
10-
import type { Type } from '#src/index.js';
8+
import type { Query } from '#types/index.d.ts';
9+
import type { Schema } from '#types/index.d.ts';
10+
import type { Type } from '#types/index.d.ts';

types/index.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
export { Context } from "#src/context.js";
2-
export { createClient } from "#src/create-client.js";
3-
export { execute } from "#src/execute.js";
4-
export { getQueryCost } from "#src/get-query-cost.js";
5-
export { injectType } from "#src/inject-type.js";
6-
export { levenshtein } from "#src/levenshtein.js";
7-
export { mergeRefs } from "#src/merge-refs.js";
8-
export { PaveError } from "#src/pave-error.js";
9-
export { validateQuery } from "#src/validate-query.js";
10-
export { validateSchema } from "#src/validate-schema.js";
11-
export { validateValue } from "#src/validate-value.js";
1+
export type { Context } from "#types/context.d.ts";
2+
export type { createClient } from "#types/create-client.d.ts";
3+
export type { execute } from "#types/execute.d.ts";
4+
export type { getQueryCost } from "#types/get-query-cost.d.ts";
5+
export type { injectType } from "#types/inject-type.d.ts";
6+
export type { levenshtein } from "#types/levenshtein.d.ts";
7+
export type { mergeRefs } from "#types/merge-refs.d.ts";
8+
export type { PaveError } from "#types/pave-error.d.ts";
9+
export type { validateQuery } from "#types/validate-query.d.ts";
10+
export type { validateSchema } from "#types/validate-schema.d.ts";
11+
export type { validateValue } from "#types/validate-value.d.ts";
1212
export type Query<T = any> = {
1313
_?: string;
1414
$?: any;

types/inject-type.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export function injectType<T extends Query>(query: T): T;
2-
import type { Query } from '#src/index.js';
2+
import type { Query } from '#types/index.d.ts';

types/normalize-key.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export function normalizeKey({ alias, query: { _, $ } }: {
22
alias: string;
33
query: Query;
44
}): string;
5-
import type { Query } from '#src/index.js';
5+
import type { Query } from '#types/index.d.ts';

types/normalize-root.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export function normalizeRoot({ query: { $ } }: {
22
query: Query;
33
}): string;
4-
import type { Query } from '#src/index.js';
4+
import type { Query } from '#types/index.d.ts';

0 commit comments

Comments
 (0)