diff --git a/.changeset/sixty-buttons-mate.md b/.changeset/sixty-buttons-mate.md deleted file mode 100644 index fc08d07..0000000 --- a/.changeset/sixty-buttons-mate.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@archisquad/repository": minor ---- - -Added support for defining indentifier field by user. Indetifier could be a -field in Entity model, or a function. It could be left undefined, then Entity -API assumes that developer stick with the default `id` field. diff --git a/.changeset/thin-walls-check.md b/.changeset/thin-walls-check.md deleted file mode 100644 index ce68637..0000000 --- a/.changeset/thin-walls-check.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@archisquad/repository": patch ---- - -Fixed problem with relation types - ealier Entity type was applied with wide -Relationship type that match every string used on entity object - which gives -false positive that such key exists on entity. diff --git a/.changeset/two-eggs-beam.md b/.changeset/two-eggs-beam.md deleted file mode 100644 index 85fd7c3..0000000 --- a/.changeset/two-eggs-beam.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@archisquad/repository": minor ---- - -Changed way of schema declaration, allowing to use schema libraries such as zod -or valibot. Added data validation in runtime during the Entity creation and -update. Changed way of entity model declaration, introducted the configure -object and single function invocation instead of previous double. Now, you can -define function for infer schema type and validator - that way Entity API -supports your favorite schema library, and still brings no extra dependecies. -Added possibility to define custom methods on Entity. diff --git a/packages/repository/CHANGELOG.md b/packages/repository/CHANGELOG.md new file mode 100644 index 0000000..c5ec5a4 --- /dev/null +++ b/packages/repository/CHANGELOG.md @@ -0,0 +1,22 @@ +# @archisquad/repository + +## 0.1.0 + +### Minor Changes + +- 67265ba: Added support for defining indentifier field by user. Indetifier could be a + field in Entity model, or a function. It could be left undefined, then Entity + API assumes that developer stick with the default `id` field. +- e616e3a: Changed way of schema declaration, allowing to use schema libraries such as zod + or valibot. Added data validation in runtime during the Entity creation and + update. Changed way of entity model declaration, introducted the configure + object and single function invocation instead of previous double. Now, you can + define function for infer schema type and validator - that way Entity API + supports your favorite schema library, and still brings no extra dependecies. + Added possibility to define custom methods on Entity. + +### Patch Changes + +- e616e3a: Fixed problem with relation types - ealier Entity type was applied with wide + Relationship type that match every string used on entity object - which gives + false positive that such key exists on entity. diff --git a/packages/repository/package.json b/packages/repository/package.json index 9c5b615..b6688b7 100644 --- a/packages/repository/package.json +++ b/packages/repository/package.json @@ -1,6 +1,6 @@ { "name": "@archisquad/repository", - "version": "0.0.1", + "version": "0.1.0", "description": "Repository pattern implementation with TypeScript as framework agnostic library", "type": "module", "main": "dist/index.cjs", @@ -19,7 +19,9 @@ "types": "./dist/index.d.ts" } }, - "files": ["dist"], + "files": [ + "dist" + ], "scripts": { "lint:dev": "biome check --apply-unsafe ./", "lint": "biome ci ./", @@ -28,7 +30,11 @@ "build": "unbuild", "pub-check": "publint" }, - "keywords": ["repository", "framework agnostic", "archisquad"], + "keywords": [ + "repository", + "framework agnostic", + "archisquad" + ], "maintainers": [ { "name": "Mateusz GostaƄski",