@tailor-platform/sdk 1.9.1 → 1.9.3

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#550](https://github.com/tailor-platform/sdk/pull/550) [`6c532f5`](https://github.com/tailor-platform/sdk/commit/6c532f58a5113b8e944eb3d6f4f8d1627f937d1e) Thanks [@toiroakr](https://github.com/toiroakr)! - Add validation error when `.unique()` is combined with `n-1` (manyToOne) relation. Use `1-1` (oneToOne) relation instead for unique foreign keys.
8
+
9
+ - [#551](https://github.com/tailor-platform/sdk/pull/551) [`67b9ce0`](https://github.com/tailor-platform/sdk/commit/67b9ce038315252c44622b2ddcfadac890d2d6f1) Thanks [@riku99](https://github.com/riku99)! - Use changeset publish for git tag and GitHub release creation
10
+
11
+ ## 1.9.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [#537](https://github.com/tailor-platform/sdk/pull/537) [`3c71c49`](https://github.com/tailor-platform/sdk/commit/3c71c49799c77053659e2e798edaf736fad0f2b5) Thanks [@riku99](https://github.com/riku99)! - Update release workflow to use changesets action for publishing and GitHub releases
16
+
3
17
  ## 1.9.1
4
18
 
5
19
  ### Patch Changes
@@ -97384,6 +97384,11 @@ function parseTailorDBType(type, allTypeNames, rawTypes) {
97384
97384
  };
97385
97385
  if (rawRelation) {
97386
97386
  validateRelationConfig(rawRelation, context);
97387
+ if ([
97388
+ "n-1",
97389
+ "manyToOne",
97390
+ "N-1"
97391
+ ].includes(rawRelation.type) && fieldConfig.unique) throw new Error(`Field "${fieldName}" on type "${type.name}": cannot set unique on n-1 (manyToOne) relation. Use 1-1 (oneToOne) relation instead, or remove the unique constraint.`);
97387
97392
  const relationMetadata = processRelationMetadata(rawRelation, context, fieldConfig.array);
97388
97393
  fieldConfig = applyRelationMetadataToFieldConfig(fieldConfig, relationMetadata);
97389
97394
  }
@@ -98375,4 +98380,4 @@ function defineApplication(config) {
98375
98380
 
98376
98381
  //#endregion
98377
98382
  export { OAuth2ClientSchema as a, tailorUserMap as c, styles as d, symbols as f, ExecutorSchema as i, loadFilesWithIgnores as l, WorkflowJobSchema as n, ResolverSchema as o, WorkflowSchema as r, stringifyFunction as s, defineApplication as t, logger as u };
98378
- //# sourceMappingURL=application-_ArEfxmV.mjs.map
98383
+ //# sourceMappingURL=application-CVdIXWKF.mjs.map