@tailor-platform/create-sdk 2.5.0 → 2.6.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/package.json +2 -3
- package/templates/executor/.oxlintrc.json +4 -1
- package/templates/executor/package.json +1 -1
- package/templates/executor/src/db/notification.ts +1 -1
- package/templates/generators/.oxlintrc.json +4 -1
- package/templates/generators/package.json +2 -2
- package/templates/generators/src/db/category.ts +1 -1
- package/templates/generators/src/db/order.ts +2 -2
- package/templates/generators/src/db/product.ts +1 -1
- package/templates/hello-world/.oxlintrc.json +4 -1
- package/templates/hello-world/package.json +1 -1
- package/templates/inventory-management/.oxlintrc.json +4 -1
- package/templates/inventory-management/package.json +1 -1
- package/templates/inventory-management/src/db/inventory.ts +1 -1
- package/templates/inventory-management/src/db/order.ts +1 -1
- package/templates/inventory-management/src/db/orderItem.ts +2 -2
- package/templates/inventory-management/src/db/product.ts +1 -1
- package/templates/multi-application/.oxlintrc.json +4 -1
- package/templates/multi-application/package.json +1 -1
- package/templates/resolver/.oxlintrc.json +4 -1
- package/templates/resolver/package.json +1 -1
- package/templates/static-web-site/.oxlintrc.json +4 -1
- package/templates/static-web-site/package.json +1 -1
- package/templates/tailordb/.oxlintrc.json +4 -1
- package/templates/tailordb/package.json +1 -1
- package/templates/tailordb/src/db/category.ts +1 -1
- package/templates/tailordb/src/db/comment.ts +2 -2
- package/templates/tailordb/src/db/task.ts +2 -2
- package/templates/workflow/.oxlintrc.json +4 -1
- package/templates/workflow/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2136](https://github.com/tailor-platform/sdk/pull/2136) [`6fba096`](https://github.com/tailor-platform/sdk/commit/6fba09676fc20e08e3325c26c0e72dc9ed4fd8f6) Thanks [@toiroakr](https://github.com/toiroakr)! - Update scaffolded project templates to use `.relation()`'s `toward.table` option instead of the deprecated `toward.type`.
|
|
8
|
+
|
|
9
|
+
- [#2160](https://github.com/tailor-platform/sdk/pull/2160) [`3cbfdc9`](https://github.com/tailor-platform/sdk/commit/3cbfdc99db5012f84dde6ab8f26dce8565834e97) Thanks [@dqn](https://github.com/dqn)! - Reject duplicate value imports in newly generated projects while preserving separate type imports and loader query semantics.
|
|
10
|
+
|
|
3
11
|
## 2.5.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/create-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"execa": "10.0.1",
|
|
22
22
|
"picocolors": "1.1.1",
|
|
23
23
|
"pkg-types": "2.3.1",
|
|
24
|
-
"politty": "0.11.
|
|
24
|
+
"politty": "0.11.9",
|
|
25
25
|
"zod": "4.4.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"lint:fix": "oxlint --type-aware . --ignore-pattern \"templates/**\" --fix",
|
|
39
39
|
"knip": "knip",
|
|
40
40
|
"typecheck": "tsc --noEmit",
|
|
41
|
-
"prepublish": "node scripts/prepare-templates.js && pnpm run build",
|
|
42
41
|
"publint": "publint --strict"
|
|
43
42
|
},
|
|
44
43
|
"bin": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -18,8 +18,8 @@
|
|
|
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.6.0",
|
|
22
|
+
"@tailor-platform/sdk-plugin-seed": "0.2.4",
|
|
23
23
|
"@types/node": "24.13.3",
|
|
24
24
|
"oxfmt": "0.63.0",
|
|
25
25
|
"oxlint": "1.78.0",
|
|
@@ -6,11 +6,11 @@ export const order = db
|
|
|
6
6
|
.table("Order", {
|
|
7
7
|
productId: db.uuid().relation({
|
|
8
8
|
type: "n-1",
|
|
9
|
-
toward: {
|
|
9
|
+
toward: { table: product },
|
|
10
10
|
}),
|
|
11
11
|
userId: db.uuid().relation({
|
|
12
12
|
type: "n-1",
|
|
13
|
-
toward: {
|
|
13
|
+
toward: { table: user },
|
|
14
14
|
}),
|
|
15
15
|
quantity: db.int(),
|
|
16
16
|
totalPrice: db.float(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -7,7 +7,7 @@ export const inventory = db
|
|
|
7
7
|
productId: db
|
|
8
8
|
.uuid()
|
|
9
9
|
.description("ID of the product")
|
|
10
|
-
.relation({ type: "1-1", toward: {
|
|
10
|
+
.relation({ type: "1-1", toward: { table: product } }),
|
|
11
11
|
quantity: db
|
|
12
12
|
.int()
|
|
13
13
|
.description("Quantity of the product in inventory")
|
|
@@ -11,7 +11,7 @@ export const order = db
|
|
|
11
11
|
contactId: db
|
|
12
12
|
.uuid()
|
|
13
13
|
.description("Contact associated with the order")
|
|
14
|
-
.relation({ type: "n-1", toward: {
|
|
14
|
+
.relation({ type: "n-1", toward: { table: contact } }),
|
|
15
15
|
...db.fields.timestamps(),
|
|
16
16
|
})
|
|
17
17
|
.permission(permissionLoggedIn)
|
|
@@ -8,11 +8,11 @@ export const orderItem = db
|
|
|
8
8
|
orderId: db
|
|
9
9
|
.uuid()
|
|
10
10
|
.description("ID of the order")
|
|
11
|
-
.relation({ type: "n-1", toward: {
|
|
11
|
+
.relation({ type: "n-1", toward: { table: order } }),
|
|
12
12
|
productId: db
|
|
13
13
|
.uuid()
|
|
14
14
|
.description("ID of the product")
|
|
15
|
-
.relation({ type: "n-1", toward: {
|
|
15
|
+
.relation({ type: "n-1", toward: { table: product } }),
|
|
16
16
|
quantity: db
|
|
17
17
|
.int()
|
|
18
18
|
.description("Quantity of the product")
|
|
@@ -9,7 +9,7 @@ export const product = db
|
|
|
9
9
|
categoryId: db
|
|
10
10
|
.uuid()
|
|
11
11
|
.description("ID of the category the product belongs to")
|
|
12
|
-
.relation({ type: "n-1", toward: {
|
|
12
|
+
.relation({ type: "n-1", toward: { table: category } }),
|
|
13
13
|
...db.fields.timestamps(),
|
|
14
14
|
})
|
|
15
15
|
.permission(permissionManager)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|
|
@@ -10,11 +10,11 @@ export const comment = db
|
|
|
10
10
|
.validate(({ value }) => (value.length < 1 ? "Comment must not be empty" : undefined)),
|
|
11
11
|
taskId: db.uuid().relation({
|
|
12
12
|
type: "n-1",
|
|
13
|
-
toward: {
|
|
13
|
+
toward: { table: task },
|
|
14
14
|
}),
|
|
15
15
|
authorId: db.uuid().relation({
|
|
16
16
|
type: "n-1",
|
|
17
|
-
toward: {
|
|
17
|
+
toward: { table: user },
|
|
18
18
|
}),
|
|
19
19
|
metadata: db.object({
|
|
20
20
|
source: db.string().description("Where the comment was posted from"),
|
|
@@ -23,11 +23,11 @@ export const task = db
|
|
|
23
23
|
dueDate: db.datetime({ optional: true }),
|
|
24
24
|
assigneeId: db.uuid({ optional: true }).relation({
|
|
25
25
|
type: "n-1",
|
|
26
|
-
toward: {
|
|
26
|
+
toward: { table: user },
|
|
27
27
|
}),
|
|
28
28
|
categoryId: db.uuid({ optional: true }).relation({
|
|
29
29
|
type: "n-1",
|
|
30
|
-
toward: {
|
|
30
|
+
toward: { table: category },
|
|
31
31
|
}),
|
|
32
32
|
isArchived: db
|
|
33
33
|
.bool()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript"],
|
|
3
|
+
"plugins": ["typescript", "import"],
|
|
4
4
|
"jsPlugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "tailor-sdk",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
19
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
20
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
21
|
+
"import/default": "off",
|
|
22
|
+
"import/namespace": "off",
|
|
23
|
+
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
21
24
|
"no-case-declarations": "error",
|
|
22
25
|
"no-empty": "error",
|
|
23
26
|
"no-fallthrough": "error",
|