@tailor-platform/create-sdk 2.14.2 → 2.15.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/CHANGELOG.md +8 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/templates/executor/package.json +2 -2
- package/templates/executor/vitest.config.ts +0 -1
- package/templates/generators/package.json +3 -3
- package/templates/generators/src/generated/files.ts +27 -1
- package/templates/generators/vitest.config.ts +0 -1
- package/templates/hello-world/package.json +1 -1
- package/templates/inventory-management/package.json +1 -1
- package/templates/multi-application/package.json +1 -1
- package/templates/resolver/package.json +2 -2
- package/templates/resolver/vitest.config.ts +0 -1
- package/templates/static-web-site/package.json +1 -1
- package/templates/tailordb/package.json +2 -2
- package/templates/tailordb/vitest.config.ts +0 -1
- package/templates/workflow/package.json +2 -2
- package/templates/workflow/vitest.config.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 2.15.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2295](https://github.com/tailor-platform/sdk/pull/2295) [`e9ca76d`](https://github.com/tailor-platform/sdk/commit/e9ca76d8e18670ae71d1203cb930cf14f8c6e816) Thanks [@renovate](https://github.com/apps/renovate)! - Depend on `@politty/zod` directly instead of the `politty` wrapper package. `politty` re-exported everything from `@politty/zod` unchanged, so this is an internal dependency swap with no effect on CLI behavior.
|
|
8
|
+
|
|
9
|
+
- [#2275](https://github.com/tailor-platform/sdk/pull/2275) [`c2c0d93`](https://github.com/tailor-platform/sdk/commit/c2c0d932d52759d9b7a3db3cfa3679b7ff44df80) Thanks [@dqn](https://github.com/dqn)! - Support Vitest 5 in `@tailor-platform/sdk/vitest` and scaffold new projects with Vitest 5. `tailorRuntime({ config })` now seeds each project's secrets from that project's own root, so a run combining projects with different roots no longer loads one project's config for all of them. Projects keep resolving the same environment they did on Vitest 4: a project that omits `extends` inherits the root `tailor-runtime` environment only on Vitest 5, where that is Vitest's own default. The `tailor-runtime` environment no longer removes the `performance` global during tests: Vitest 5's module loader reads it while resolving `import()` calls, and the deploy-time free-variable check already treats `performance` as a runtime global.
|
|
10
|
+
|
|
3
11
|
## 2.14.2
|
|
4
12
|
|
|
5
13
|
No changes in this release.
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { chdir } from "node:process";
|
|
3
3
|
import { cancel, intro, isCancel, log, outro, select, spinner, text } from "@clack/prompts";
|
|
4
|
+
import { arg, defineCommand, runMain } from "@politty/zod";
|
|
4
5
|
import pc from "picocolors";
|
|
5
6
|
import { readPackageJSON } from "pkg-types";
|
|
6
|
-
import { arg, defineCommand, runMain } from "politty";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { cp, readdir, rename, writeFile } from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/create-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@clack/prompts": "1.7.0",
|
|
21
|
+
"@politty/zod": "0.2.1",
|
|
21
22
|
"execa": "10.0.1",
|
|
22
23
|
"picocolors": "1.1.1",
|
|
23
24
|
"pkg-types": "2.3.2",
|
|
24
|
-
"politty": "0.11.9",
|
|
25
25
|
"zod": "4.5.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@tailor-platform/eslint-plugin-sdk": "0.2.3",
|
|
18
|
-
"@tailor-platform/sdk": "2.
|
|
18
|
+
"@tailor-platform/sdk": "2.15.0",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
20
|
"oxfmt": "0.66.0",
|
|
21
21
|
"oxlint": "1.81.0",
|
|
22
22
|
"oxlint-tsgolint": "7.0.2001",
|
|
23
23
|
"typescript": "6.0.3",
|
|
24
|
-
"vitest": "
|
|
24
|
+
"vitest": "5.0.0"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@tailor-platform/eslint-plugin-sdk": "0.2.3",
|
|
21
|
-
"@tailor-platform/sdk": "2.
|
|
22
|
-
"@tailor-platform/sdk-plugin-seed": "0.2.
|
|
21
|
+
"@tailor-platform/sdk": "2.15.0",
|
|
22
|
+
"@tailor-platform/sdk-plugin-seed": "0.2.9",
|
|
23
23
|
"@types/node": "24.13.3",
|
|
24
24
|
"oxfmt": "0.66.0",
|
|
25
25
|
"oxlint": "1.81.0",
|
|
26
26
|
"oxlint-tsgolint": "7.0.2001",
|
|
27
27
|
"typescript": "6.0.3",
|
|
28
|
-
"vitest": "
|
|
28
|
+
"vitest": "5.0.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { file } from "@tailor-platform/sdk/runtime/file";
|
|
2
2
|
import type {
|
|
3
3
|
FileUploadOptions,
|
|
4
|
+
FileUploadStringOptions,
|
|
5
|
+
FileUploadBytes,
|
|
4
6
|
FileUploadResponse,
|
|
5
7
|
FileMetadata,
|
|
6
8
|
FileDownloadStreamResponse,
|
|
@@ -24,11 +26,35 @@ export async function downloadFile<T extends keyof TypeWithFiles>(
|
|
|
24
26
|
return await file.download(namespaces[type], type, field, recordId);
|
|
25
27
|
}
|
|
26
28
|
|
|
29
|
+
export function uploadFile<T extends keyof TypeWithFiles>(
|
|
30
|
+
type: T,
|
|
31
|
+
field: TypeWithFiles[T]["fields"],
|
|
32
|
+
recordId: string,
|
|
33
|
+
data: FileUploadBytes,
|
|
34
|
+
options?: FileUploadOptions,
|
|
35
|
+
): Promise<FileUploadResponse>;
|
|
36
|
+
export function uploadFile<T extends keyof TypeWithFiles>(
|
|
37
|
+
type: T,
|
|
38
|
+
field: TypeWithFiles[T]["fields"],
|
|
39
|
+
recordId: string,
|
|
40
|
+
data: string | FileUploadBytes,
|
|
41
|
+
options: FileUploadStringOptions,
|
|
42
|
+
): Promise<FileUploadResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated since NEXT_RELEASE — pass encoding: "utf8" for text or "base64" for Base64 strings. codemod: v3/file-upload-encoding
|
|
45
|
+
*/
|
|
46
|
+
export function uploadFile<T extends keyof TypeWithFiles>(
|
|
47
|
+
type: T,
|
|
48
|
+
field: TypeWithFiles[T]["fields"],
|
|
49
|
+
recordId: string,
|
|
50
|
+
data: string | FileUploadBytes,
|
|
51
|
+
options?: FileUploadOptions,
|
|
52
|
+
): Promise<FileUploadResponse>;
|
|
27
53
|
export async function uploadFile<T extends keyof TypeWithFiles>(
|
|
28
54
|
type: T,
|
|
29
55
|
field: TypeWithFiles[T]["fields"],
|
|
30
56
|
recordId: string,
|
|
31
|
-
data: string |
|
|
57
|
+
data: string | FileUploadBytes,
|
|
32
58
|
options?: FileUploadOptions,
|
|
33
59
|
): Promise<FileUploadResponse> {
|
|
34
60
|
return await file.upload(namespaces[type], type, field, recordId, data, options);
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@tailor-platform/eslint-plugin-sdk": "0.2.3",
|
|
18
|
-
"@tailor-platform/sdk": "2.
|
|
18
|
+
"@tailor-platform/sdk": "2.15.0",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
20
|
"oxfmt": "0.66.0",
|
|
21
21
|
"oxlint": "1.81.0",
|
|
22
22
|
"oxlint-tsgolint": "7.0.2001",
|
|
23
23
|
"typescript": "6.0.3",
|
|
24
|
-
"vitest": "
|
|
24
|
+
"vitest": "5.0.0"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@tailor-platform/eslint-plugin-sdk": "0.2.3",
|
|
18
|
-
"@tailor-platform/sdk": "2.
|
|
18
|
+
"@tailor-platform/sdk": "2.15.0",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
20
|
"oxfmt": "0.66.0",
|
|
21
21
|
"oxlint": "1.81.0",
|
|
22
22
|
"oxlint-tsgolint": "7.0.2001",
|
|
23
23
|
"typescript": "6.0.3",
|
|
24
|
-
"vitest": "
|
|
24
|
+
"vitest": "5.0.0"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@tailor-platform/eslint-plugin-sdk": "0.2.3",
|
|
19
|
-
"@tailor-platform/sdk": "2.
|
|
19
|
+
"@tailor-platform/sdk": "2.15.0",
|
|
20
20
|
"@types/node": "24.13.3",
|
|
21
21
|
"graphql": "17.0.2",
|
|
22
22
|
"graphql-request": "7.4.0",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"oxlint": "1.81.0",
|
|
25
25
|
"oxlint-tsgolint": "7.0.2001",
|
|
26
26
|
"typescript": "6.0.3",
|
|
27
|
-
"vitest": "
|
|
27
|
+
"vitest": "5.0.0"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -7,7 +7,6 @@ export default defineConfig({
|
|
|
7
7
|
watch: false,
|
|
8
8
|
projects: [
|
|
9
9
|
{
|
|
10
|
-
extends: true,
|
|
11
10
|
test: {
|
|
12
11
|
name: { label: "unit", color: "blue" },
|
|
13
12
|
environment: "tailor-runtime",
|
|
@@ -15,7 +14,6 @@ export default defineConfig({
|
|
|
15
14
|
},
|
|
16
15
|
},
|
|
17
16
|
{
|
|
18
|
-
extends: true,
|
|
19
17
|
test: {
|
|
20
18
|
name: { label: "e2e", color: "green" },
|
|
21
19
|
include: ["e2e/**/*.test.ts"],
|