Skip to content

Commit

Permalink
chore: Updated deps (#273)
Browse files Browse the repository at this point in the history
Before merging: 
- [x] Fix broking links in documentation


```
[WARNING] Docusaurus found broken anchors!

Please check the pages of your site in the list below, and make sure you don't reference any anchor that does not exist.
Note: it's possible to ignore broken anchors with the 'onBrokenAnchors' Docusaurus configuration, and let the build pass.

Exhaustive list of all broken anchors found:
- Broken anchor on source page path = /nestjs-query/docs/concepts/services:
   -> linking to #relation-query-service (resolved as: /nestjs-query/docs/concepts/services#relation-query-service)
- Broken anchor on source page path = /nestjs-query/docs/faq:
   -> linking to /nestjs-query/docs/graphql/relations#many-relation
   -> linking to /nestjs-query/docs/graphql/relations#filterablerelation-decorator
   -> linking to /nestjs-query/docs/graphql/relations#filterableconnection-decorator
- Broken anchor on source page path = /nestjs-query/docs/graphql/getting-started:
   -> linking to /nestjs-query/docs/introduction/install#nestjs-queryquery-graphql
- Broken anchor on source page path = /nestjs-query/docs/graphql/queries/filtering:
   -> linking to /nestjs-query/docs/graphql/dtos#filter-depth
- Broken anchor on source page path = /nestjs-query/docs/persistence/mongoose/getting-started:
   -> linking to /nestjs-query/docs/introduction/install#nestjs-queryquery-mongoose
- Broken anchor on source page path = /nestjs-query/docs/persistence/sequelize/getting-started:
   -> linking to /nestjs-query/docs/introduction/install#nestjs-queryquery-sequelize
- Broken anchor on source page path = /nestjs-query/docs/persistence/typegoose/getting-started:
   -> linking to /nestjs-query/docs/introduction/install#nestjs-queryquery-typegoose
- Broken anchor on source page path = /nestjs-query/docs/persistence/typeorm/getting-started:
   -> linking to /nestjs-query/docs/introduction/install#nestjs-queryquery-typeorm
```
  • Loading branch information
TriPSs authored Aug 21, 2024
2 parents d7baa81 + ffaac3a commit 823abfb
Show file tree
Hide file tree
Showing 31 changed files with 9,222 additions and 9,354 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: ./.github/actions/setup-step

- name: docker compose
run: docker-compose -f ./examples/docker-compose.yml up -d
run: docker compose -f ./examples/docker-compose.yml up -d

- name: nx affected:e2e
run: yarn nx run-many --target=e2e --all
Expand Down
546 changes: 0 additions & 546 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

786 changes: 0 additions & 786 deletions .yarn/releases/yarn-3.2.1.cjs

This file was deleted.

925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.0.cjs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-4.4.0.cjs
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ The first time you run the `e2e` tests you will need to start all backing servic

```
cd ./examples
docker-compose up -d
docker compose up -d
```

To run the tests you can issue the following from the root
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/concepts/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ The `completedSubTasks` relation is now available in your graphql schema.

The `ProxyQueryService` is a query service that delegates to another query service. The `ProxyQueryService` can be used when you want to override certain methods of a query service without extending it.

This class is used internally by the [RelationQueryService](#relation-query-service) to override the relation methods for a `QueryService`
This class is used internally by the [RelationQueryService](#relationqueryservice) to override the relation methods for a `QueryService`

Lets use the `ProxyQueryService` to create a generic query service that will time and log a message everytime a `create`, `update`, or `delete` method is called.

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ The first time you run the `e2e` tests you will need to start all backing servic

```
cd ./examples
docker-compose up -d
docker compose up -d
```

To run the tests you can issue the following from the root
Expand Down
10 changes: 5 additions & 5 deletions documentation/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ Yes! You can specify a `pagingStrategy` option to customize how paging is handle

For more information and examples check out the following docs
* [DTO Paging Strategy](./graphql/dtos.mdx#paging-strategy)
* [Relations](./graphql/relations.mdx#many-relation)
* [Relations](./graphql/relations.mdx)

## Can I use turn off paging?

Yes! You can specify a `pagingStrategy` option to customize how paging is handled at the resolver or relation level.

For more information and examples check out the following docs
* [DTO Paging Strategy](./graphql/dtos.mdx#paging-strategy)
* [Relations](./graphql/relations.mdx#many-relation)
* [Relations](./graphql/relations.mdx)


## How can I filter on relations?

You can filter based on relations if you use the `@FilterableRelation` or `@FilterableConnection` decorators when defining your relations.

To read more and see examples read the following docs.
To read more and see examples, read the following docs.

* [`@FilterableRelation`](./graphql/relations.mdx#filterablerelation-decorator)
* [`@FilterableConnection`](./graphql/relations.mdx#filterableconnection-decorator)
* [`@FilterableRelation`](./graphql/relations.mdx#filterablerelation)
* [`@FilterableConnection`](./graphql/relations.mdx#filterableoffsetconnection)


## Does nestjs-query support specifying complexity.
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/graphql/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The `@ptc-org/nestjs-query-graphql` package provided base `Resolvers` and graphq

## Installation

[Installation Docs](../introduction/install.md#nestjs-queryquery-graphql)
[Installation Docs](../introduction/install.md#ptc-orgnestjs-query-graphql)

### Docs

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/graphql/queries/filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The following example filters for all todoItems that are marked completed.

When querying the default filter is one level deep. You can specify the generated filter-type depth by using the QueryOptions decorator on your DTO.

You can find the documentation and an example in the [QueryOptions reference](../dtos.mdx#filter-depth).
You can find the documentation and an example in the [QueryOptions reference](../dtos.mdx#generated-filter-type-depth).


## Setting a default filter
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/introduction/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ services:

Start the backing services
```sh
docker-compose up -d
docker compose up -d
```

Start the app
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/persistence/mongoose/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package is built using [mongoose](https://mongoosejs.com/) and [@nestjs/mon

## Installation

[Installation Docs](../../introduction/install.md#nestjs-queryquery-mongoose)
[Installation Docs](../../introduction/install.md#ptc-orgnestjs-query-mongoose)

## Docs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package is built using [sequelize](https://sequelize.org/) and [@nestjs/seq

## Installation

[Installation Docs](../../introduction/install.md#nestjs-queryquery-sequelize)
[Installation Docs](../../introduction/install.md#ptc-orgnestjs-query-sequelize)

## Docs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package is built using [typegoose](https://typegoose.github.io/typegoose/)

## Installation

[Installation Docs](../../introduction/install.md#nestjs-queryquery-typegoose)
[Installation Docs](../../introduction/install.md#ptc-orgnestjs-query-typegoose)

## Docs

Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/persistence/typeorm/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package is built using [typeorm](https://typeorm.io/#/) and [@nestjs/typeor

## Installation

[Installation Docs](../../introduction/install.md#nestjs-queryquery-typeorm)
[Installation Docs](../../introduction/install.md#ptc-orgnestjs-query-typeorm)

## Docs

Expand Down
6 changes: 3 additions & 3 deletions documentation/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"sourceRoot": "/documentation/src",
"targets": {
"build": {
"executor": "@nx-plus/docusaurus:browser",
"executor": "@nx-extend/docusaurus:browser",
"options": {
"outputPath": "dist//documentation"
"outputPath": "dist/documentation"
}
},
"serve": {
"executor": "@nx-plus/docusaurus:dev-server",
"executor": "@nx-extend/docusaurus:dev-server",
"options": {
"port": 3001
}
Expand Down
93 changes: 45 additions & 48 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"packages/**"
],
"scripts": {
"docker": "docker-compose -f ./examples/docker-compose.yml",
"docker": "docker compose -f ./examples/docker-compose.yml",
"prepare": "husky install",
"test:e2e": "nx e2e examples"
},
Expand All @@ -15,101 +15,98 @@
"@apollo/subgraph": "2.2.3"
},
"dependencies": {
"@docusaurus/core": "3.3.2",
"@docusaurus/preset-classic": "3.3.2",
"@m8a/nestjs-typegoose": "12.0.0",
"@nestjs/common": "10.3.8",
"@nestjs/core": "10.3.8",
"@nestjs/graphql": "^12.1.1",
"@nestjs/common": "10.4.1",
"@nestjs/core": "10.4.1",
"@nestjs/graphql": "^12.2.0",
"@nestjs/jwt": "10.2.0",
"@nestjs/mongoose": "10.0.6",
"@nestjs/mongoose": "10.0.10",
"@nestjs/passport": "10.0.3",
"@nestjs/platform-express": "10.3.8",
"@nestjs/platform-express": "10.4.1",
"@nestjs/sequelize": "10.0.1",
"@nestjs/typeorm": "^10.0.2",
"class-validator": "0.14.1",
"clsx": "^2.1.1",
"mongoose": "^8.3.3",
"mysql2": "3.9.8",
"passport": "0.7.0",
"passport-jwt": "4.0.1",
"passport-local": "1.0.0",
"pg": "8.11.5",
"prism-react-renderer": "^2.3.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"mongoose": "^8.5.3",
"reflect-metadata": "^0.2.2",
"rimraf": "5.0.5",
"rxjs": "7.8.1",
"sequelize": "6.37.3",
"sequelize-typescript": "2.1.6",
"tslib": "^2.6.2",
"tslib": "^2.6.3",
"typeorm": "^0.3.17"
},
"devDependencies": {
"@actions/core": "^1.10.1",
"@apollo/federation": "0.38.1",
"@apollo/gateway": "2.7.5",
"@apollo/server": "^4.10.4",
"@apollo/subgraph": "2.7.5",
"@commitlint/cli": "19.3.0",
"@apollo/gateway": "2.8.4",
"@apollo/server": "^4.11.0",
"@apollo/subgraph": "2.8.4",
"@commitlint/cli": "19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@docusaurus/module-type-aliases": "3.3.2",
"@jscutlery/semver": "5.2.2",
"@nestjs/apollo": "^12.1.0",
"@nestjs/cli": "10.3.2",
"@nestjs/schematics": "10.1.1",
"@nestjs/testing": "^10.3.8",
"@nx-plus/docusaurus": "^15.0.0-rc.0",
"@docusaurus/core": "3.5.2",
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@jscutlery/semver": "5.3.1",
"@nestjs/apollo": "^12.2.0",
"@nestjs/cli": "10.4.4",
"@nestjs/schematics": "10.1.4",
"@nestjs/testing": "^10.4.1",
"@nx-extend/docusaurus": "^2.0.1",
"@nx/eslint": "18.3.4",
"@nx/eslint-plugin": "18.3.4",
"@nx/jest": "18.3.4",
"@nx/js": "18.3.4",
"@nx/node": "18.3.4",
"@typegoose/typegoose": "^12.4.0",
"@typegoose/typegoose": "^12.6.0",
"@types/express": "4.17.21",
"@types/jest": "29.5.12",
"@types/lodash.escaperegexp": "4.1.9",
"@types/lodash.filter": "4.6.9",
"@types/lodash.merge": "4.6.9",
"@types/lodash.omit": "4.5.9",
"@types/lodash.pick": "4.4.9",
"@types/node": "20.12.8",
"@types/node": "20.14.2",
"@types/passport-jwt": "4.0.1",
"@types/passport-local": "1.0.38",
"@types/pluralize": "0.0.33",
"@types/supertest": "6.0.2",
"@types/uuid": "9.0.8",
"@types/ws": "8.5.10",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"@types/ws": "8.5.12",
"@typescript-eslint/eslint-plugin": "7.13.0",
"@typescript-eslint/parser": "7.13.0",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
"clsx": "^2.1.1",
"dataloader": "2.2.2",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "28.5.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-jest": "28.8.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-tsdoc": "0.2.17",
"graphql": "16.8.1",
"graphql-query-complexity": "0.12.0",
"graphql": "16.9.0",
"graphql-query-complexity": "1.0.0",
"graphql-subscriptions": "2.0.0",
"graphql-tools": "9.0.1",
"husky": "9.0.11",
"husky": "9.1.5",
"jest": "29.7.0",
"jest-extended": "4.0.2",
"mongodb-memory-server": "9.2.0",
"mongodb-memory-server": "9.3.0",
"mysql2": "3.11.0",
"nx": "18.3.4",
"prettier": "3.2.5",
"sql-formatter": "^15.3.1",
"passport": "0.7.0",
"passport-jwt": "4.0.1",
"passport-local": "1.0.0",
"pg": "8.12.0",
"prettier": "3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sql-formatter": "^15.4.0",
"sqlite3": "^5.1.7",
"supertest": "7.0.0",
"ts-jest": "29.1.2",
"ts-jest": "29.1.5",
"ts-loader": "9.5.1",
"ts-mockito": "2.6.1",
"ts-morph": "^22.0.0",
Expand All @@ -118,5 +115,5 @@
"tsconfig-paths": "4.2.0",
"typescript": "5.4.5"
},
"packageManager": "yarn@3.2.1"
"packageManager": "yarn@4.4.0"
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"dependencies": {
"lodash.merge": "^4.6.2",
"reflect-metadata": "^0.2.2",
"tslib": "^2.6.2"
"tslib": "^2.6.3"
},
"peerDependencies": {
"@nestjs/common": "^9.0.0 || ^10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/query-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"lodash.omit": "^4.5.0",
"lower-case-first": "^2.0.2",
"pluralize": "^8.0.0",
"tslib": "^2.6.2",
"tslib": "^2.6.3",
"upper-case-first": "^2.0.2"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/query-graphql/src/decorators/hook-args.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createParamDecorator, ExecutionContext } from '@nestjs/common'
import { Args, GqlExecutionContext } from '@nestjs/graphql'
import { Class } from '@ptc-org/nestjs-query-core'
import { plainToClass } from 'class-transformer'
import { plainToInstance } from 'class-transformer'

import { Hook } from '../hooks'
import { HookContext } from '../interceptors'
Expand All @@ -10,7 +10,7 @@ import { composeDecorators } from './decorator.utils'

function transformValue<T>(value: T, type?: Class<T>): T {
if (type && !(value instanceof type)) {
return plainToClass<T, unknown>(type, value)
return plainToInstance<T, unknown>(type, value)
}
return value
}
Expand Down
2 changes: 1 addition & 1 deletion packages/query-mongoose/__tests__/__fixtures__/seeds.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-underscore-dangle,@typescript-eslint/no-unsafe-return */
import { Connection } from 'mongoose'
import { Connection, Types } from 'mongoose'

import { TestEntity } from './test.entity'
import { TestReference } from './test-reference.entity'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
import { Document, SchemaTypes, Types } from 'mongoose'

@Schema()
export class TestReference extends Document {
export class TestReference extends Document<string> {
@Prop({ required: true })
referenceName!: string

@Prop({ type: SchemaTypes.ObjectId, ref: 'TestEntity' })
testEntity?: Types.ObjectId
testEntity?: Types.ObjectId | string
}

export const TestReferenceSchema = SchemaFactory.createForClass(TestReference)
Expand Down
4 changes: 2 additions & 2 deletions packages/query-mongoose/__tests__/__fixtures__/test.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
import { Document, SchemaTypes, Types } from 'mongoose'

@Schema()
export class TestEntity extends Document {
export class TestEntity extends Document<string> {
@Prop({ required: true })
stringType!: string

Expand All @@ -19,7 +19,7 @@ export class TestEntity extends Document {
testReference?: Types.ObjectId | string

@Prop([{ type: SchemaTypes.ObjectId, ref: 'TestReference' }])
testReferences?: Types.ObjectId[]
testReferences?: Types.ObjectId[] | string[]
}

export const TestEntitySchema = SchemaFactory.createForClass(TestEntity)
Expand Down
Loading

0 comments on commit 823abfb

Please sign in to comment.