Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/sixty-buttons-mate.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/thin-walls-check.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/two-eggs-beam.md

This file was deleted.

22 changes: 22 additions & 0 deletions packages/repository/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 9 additions & 3 deletions packages/repository/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -19,7 +19,9 @@
"types": "./dist/index.d.ts"
}
},
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"lint:dev": "biome check --apply-unsafe ./",
"lint": "biome ci ./",
Expand All @@ -28,7 +30,11 @@
"build": "unbuild",
"pub-check": "publint"
},
"keywords": ["repository", "framework agnostic", "archisquad"],
"keywords": [
"repository",
"framework agnostic",
"archisquad"
],
"maintainers": [
{
"name": "Mateusz Gostański",
Expand Down
Loading