Skip to content

Commit

Permalink
fix: defineCollection() typing
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Mar 16, 2024
1 parent cb49cd8 commit eb2ade7
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 32 deletions.
8 changes: 8 additions & 0 deletions packages/aeria-build/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# aeria-build

## 0.0.41

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.37
- @aeriajs/builtins@0.0.37

## 0.0.40

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/aeria-build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aeria-build",
"version": "0.0.40",
"version": "0.0.41",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -46,8 +46,8 @@
"tslib": "^2.5.0"
},
"peerDependencies": {
"@aeriajs/api": "^0.0.36",
"@aeriajs/builtins": "^0.0.36",
"@aeriajs/api": "^0.0.37",
"@aeriajs/builtins": "^0.0.37",
"@aeriajs/common": "^0.0.19",
"@aeriajs/types": "^0.0.18"
}
Expand Down
10 changes: 10 additions & 0 deletions packages/aeria/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# aeria

## 0.0.37

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.37
- @aeriajs/builtins@0.0.37
- @aeriajs/security@0.0.37
- @aeriajs/server@0.0.37

## 0.0.36

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/aeria/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aeria",
"version": "0.0.36",
"version": "0.0.37",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -34,14 +34,14 @@
],
"peerDependencies": {
"@aeriajs/access-control": "^0.0.19",
"@aeriajs/api": "^0.0.36",
"@aeriajs/api": "^0.0.37",
"@aeriajs/common": "^0.0.19",
"@aeriajs/entrypoint": "^0.0.19",
"@aeriajs/http": "^0.0.26",
"@aeriajs/node-http": "^0.0.26",
"@aeriajs/security": "^0.0.36",
"@aeriajs/server": "^0.0.36",
"@aeriajs/builtins": "^0.0.36",
"@aeriajs/security": "^0.0.37",
"@aeriajs/server": "^0.0.37",
"@aeriajs/builtins": "^0.0.37",
"@aeriajs/types": "^0.0.18",
"@aeriajs/validation": "^0.0.22"
}
Expand Down
8 changes: 8 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @aeriajs/api

## 0.0.37

### Patch Changes

- Fix defineCollection() typing
- @aeriajs/builtins@0.0.37
- @aeriajs/security@0.0.37

## 0.0.36

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aeriajs/api",
"version": "0.0.36",
"version": "0.0.37",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -46,8 +46,8 @@
"@aeriajs/common": "^0.0.19",
"@aeriajs/entrypoint": "^0.0.19",
"@aeriajs/http": "^0.0.26",
"@aeriajs/security": "^0.0.36",
"@aeriajs/builtins": "^0.0.36",
"@aeriajs/security": "^0.0.37",
"@aeriajs/builtins": "^0.0.37",
"@aeriajs/types": "^0.0.18",
"@aeriajs/validation": "^0.0.22",
"jsonwebtoken": "^8.5.1",
Expand Down
2 changes: 2 additions & 0 deletions packages/api/src/collection/define.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const defineCollection = <
Coll,
| 'item'
| 'description'
| 'functions'
>
: never,
const TDescription extends Description<TDescription>,
Expand All @@ -41,6 +42,7 @@ export const defineCollection = <
return collection as TCollection & {
item: SchemaWithId<TDescription>
description: TDescription
functions: TFunctions
functionContracts: TFunctionContracts
accessControl: AccessControl
}
Expand Down
7 changes: 7 additions & 0 deletions packages/builtins/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @aeriajs/builtins

## 0.0.37

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.37

## 0.0.36

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/builtins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aeriajs/builtins",
"version": "0.0.36",
"version": "0.0.37",
"description": "## Installation",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -51,7 +51,7 @@
"mongodb": "^6.1.0"
},
"peerDependencies": {
"@aeriajs/api": "^0.0.36",
"@aeriajs/api": "^0.0.37",
"@aeriajs/access-control": "^0.0.19",
"@aeriajs/entrypoint": "^0.0.19",
"@aeriajs/common": "^0.0.19",
Expand Down
7 changes: 7 additions & 0 deletions packages/security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @aeriajs/security

## 0.0.37

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.37

## 0.0.36

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/security/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aeriajs/security",
"version": "0.0.36",
"version": "0.0.37",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"dist"
],
"peerDependencies": {
"@aeriajs/api": "^0.0.36",
"@aeriajs/api": "^0.0.37",
"@aeriajs/common": "^0.0.19",
"@aeriajs/types": "^0.0.18",
"mongodb": "^6.1.0"
Expand Down
9 changes: 9 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @aeriajs/server

## 0.0.37

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.37
- @aeriajs/builtins@0.0.37
- @aeriajs/server@0.0.37

## 0.0.36

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aeriajs/server",
"version": "0.0.36",
"version": "0.0.37",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -33,12 +33,12 @@
],
"peerDependencies": {
"@aeriajs/access-control": "^0.0.19",
"@aeriajs/api": "^0.0.36",
"@aeriajs/api": "^0.0.37",
"@aeriajs/common": "^0.0.19",
"@aeriajs/entrypoint": "^0.0.19",
"@aeriajs/http": "^0.0.26",
"@aeriajs/server": "^0.0.36",
"@aeriajs/builtins": "^0.0.36",
"@aeriajs/server": "^0.0.37",
"@aeriajs/builtins": "^0.0.37",
"@aeriajs/types": "^0.0.18",
"mongodb": "^6.1.0"
},
Expand Down
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb2ade7

Please sign in to comment.