Skip to content

Commit

Permalink
fix(api): bug in normalizeProjection()
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Mar 8, 2024
1 parent 01a9b5c commit 1ea9534
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 33 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.10

### Patch Changes

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

## 0.0.9

### 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.9",
"version": "0.0.10",
"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.6",
"@aeriajs/builtins": "^0.0.6",
"@aeriajs/api": "^0.0.7",
"@aeriajs/builtins": "^0.0.7",
"@aeriajs/common": "^0.0.1",
"@aeriajs/types": "^0.0.0"
}
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.7

### Patch Changes

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

## 0.0.6

### 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.6",
"version": "0.0.7",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -34,14 +34,14 @@
],
"peerDependencies": {
"@aeriajs/access-control": "^0.0.1",
"@aeriajs/api": "^0.0.6",
"@aeriajs/api": "^0.0.7",
"@aeriajs/common": "^0.0.1",
"@aeriajs/entrypoint": "^0.0.1",
"@aeriajs/http": "^0.0.4",
"@aeriajs/node-http": "^0.0.4",
"@aeriajs/security": "^0.0.6",
"@aeriajs/server": "^0.0.6",
"@aeriajs/builtins": "^0.0.6",
"@aeriajs/security": "^0.0.7",
"@aeriajs/server": "^0.0.7",
"@aeriajs/builtins": "^0.0.7",
"@aeriajs/types": "^0.0.0",
"@aeriajs/validation": "^0.0.4"
}
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.7

### Patch Changes

- Fix normalizeProjection() bug
- @aeriajs/builtins@0.0.7
- @aeriajs/security@0.0.7

## 0.0.6

### 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.6",
"version": "0.0.7",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -46,8 +46,8 @@
"@aeriajs/common": "^0.0.1",
"@aeriajs/entrypoint": "^0.0.1",
"@aeriajs/http": "^0.0.4",
"@aeriajs/security": "^0.0.6",
"@aeriajs/builtins": "^0.0.6",
"@aeriajs/security": "^0.0.7",
"@aeriajs/builtins": "^0.0.7",
"@aeriajs/types": "^0.0.0",
"@aeriajs/validation": "^0.0.4",
"jsonwebtoken": "^8.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/collection/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const normalizeProjection = <
}

const projection = target.reduce((a, key) => {
if( description.properties[key].hidden ) {
if( key !== '_id' && description.properties[key].hidden ) {
return a
}

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.7

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.7

## 0.0.6

### 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.6",
"version": "0.0.7",
"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.6",
"@aeriajs/api": "^0.0.7",
"@aeriajs/access-control": "^0.0.1",
"@aeriajs/entrypoint": "^0.0.1",
"@aeriajs/common": "^0.0.1",
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.7

### Patch Changes

- Updated dependencies
- @aeriajs/api@0.0.7

## 0.0.6

### 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.6",
"version": "0.0.7",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -32,7 +32,7 @@
"dist"
],
"peerDependencies": {
"@aeriajs/api": "^0.0.6",
"@aeriajs/api": "^0.0.7",
"@aeriajs/common": "^0.0.1",
"@aeriajs/types": "^0.0.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.7

### Patch Changes

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

## 0.0.6

### 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.6",
"version": "0.0.7",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -33,12 +33,12 @@
],
"peerDependencies": {
"@aeriajs/access-control": "^0.0.1",
"@aeriajs/api": "^0.0.6",
"@aeriajs/api": "^0.0.7",
"@aeriajs/common": "^0.0.1",
"@aeriajs/entrypoint": "^0.0.1",
"@aeriajs/http": "^0.0.4",
"@aeriajs/server": "^0.0.6",
"@aeriajs/builtins": "^0.0.6",
"@aeriajs/server": "^0.0.7",
"@aeriajs/builtins": "^0.0.7",
"@aeriajs/types": "^0.0.0",
"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 1ea9534

Please sign in to comment.