Skip to content

Latest commit

 

History

History
872 lines (372 loc) · 36 KB

CHANGELOG.md

File metadata and controls

872 lines (372 loc) · 36 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.20.1 (2020-09-28)

Bug Fixes

  • deps: update dependency apollo-server-express to v2.18.0 (ca28fda)
  • deps: update dependency apollo-server-express to v2.18.1 (b5f9378)
  • deps: update dependency apollo-server-plugin-base to v0.10.1 (735032a)
  • deps: update dependency graphql-tools to v6.2.3 (642c11f)
  • deps: update dependency mysql2 to v2.2.1 (5159077)
  • deps: update dependency mysql2 to v2.2.2 (f9235b2)
  • deps: update dependency mysql2 to v2.2.3 (a2a5afc)
  • deps: update dependency mysql2 to v2.2.5 (b66e6e6)
  • graphql: Fix assemblers type for module passthrough (713c41c)

0.20.0 (2020-09-17)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.64 (ea0a202)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.64 (3d3dd96)

Features

  • core: Update assemblers to allow transforming create/update dtos (5085d11)
  • core: Update query service decorator to have correct generics (74dc618)

0.19.4 (2020-09-15)

Bug Fixes

  • deps: update dependency graphql-tools to v6.2.2 (8a2253b)

Features

  • graphql: Add keyset connections (36bdbdd)

0.19.3 (2020-09-09)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.63 (631e922)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.63 (aa95f40)
  • deps: update dependency graphql-tools to v6.2.1 (b1e0833)
  • deps: update dependency rxjs to v6.6.3 (addf2e2)
  • examples: Fix nest-cli.json to reference correct tsconfig (a49d063)
  • graphql,hooks: Allow getting hooks from parent classes (59a0aeb)

0.19.2 (2020-09-03)

Bug Fixes

  • graphql, #505: Less restrictive readResolverOpts for auto crud (b4e6862), closes #505

0.19.1 (2020-09-02)

Bug Fixes

  • deps: update dependency graphql-tools to v6.2.0 (1183fa3)
  • typeorm,#493: Fix uni-directional relation SQL (7887b8c)

0.19.0 (2020-09-01)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.62 (dc773f4)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.62 (ad5c2d2)
  • deps: update dependency apollo-server-express to v2.17.0 (53398fe)
  • deps: update dependency graphql-tools to v6.1.0 (2394310)
  • deps: update dependency pg to v8.3.2 (1a03710)
  • deps: update dependency pg to v8.3.3 (f471395)
  • example,auth: Fix auth example (b26e1c6)

Features

  • auth: Initial Investigation (8d40636)
  • core: Update QueryService to allow additional filtering (474369b)
  • graphql,auth: Add authorization to resolvers and relations (9d76787)
  • sequelize: Add additional filter options to QueryService (29fdfa7)
  • typeorm: Add additional filter options to QueryService (64241dc)

0.18.1 (2020-08-14)

Bug Fixes

  • core: Fix potential stack overflow with filter comparison (f498802)
  • deps: update dependency graphql-query-complexity to v0.7.0 (d47bba1)
  • deps: update dependency graphql-tools to v6.0.17 (b0d1648)
  • deps: update dependency graphql-tools to v6.0.18 (9678548)
  • tests: Make subTask connections tests order consistently (ab8bab2)

Features

  • core: refactor null compares and improve tests (3582ed2)
  • refactored filter builder to support nested object filters (1ee8dbf)

0.18.0 (2020-08-11)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.61 (c2f03b8)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.61 (e052793)
  • deps: update dependency graphql-tools to v6.0.16 (df3784d)
  • e2e: Making tests deterministic (175cc2e)
  • tests: Fix tests to be deterministic (5dd6dac)
  • type: Pin dev dependencies (442db4c)
  • workflow: Fix github actions matrix reference (a4d9447)

Features

  • typeorm: Switch to use unioned queries for relations (327c676)

0.17.10 (2020-08-01)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.60 (8982a12)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.60 (3663b9b)
  • deps: update dependency rxjs to v6.6.2 (7062be9)

0.17.9 (2020-07-29)

Features

  • graphql: Allow specifying fields that are required when querying (a425ba7)

0.17.8 (2020-07-28)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.59 (ffe2ae9)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.59 (7a80894)
  • deps: update dependency apollo-server-express to v2.16.1 (4989294)

Features

  • graphql: Allow specifying allowed comparisons on filterable fields (ced2792)

0.17.7 (2020-07-27)

Features

  • core: Added applySort, applyPaging and applyQuery #405 (9f9ae0d)

0.17.6 (2020-07-24)

Bug Fixes

  • graphql: Include inherited references and relations (26dd6f9)

0.17.5 (2020-07-24)

Bug Fixes

  • graphql,aggregations: Exclude __typename in aggregations (3897673)

0.17.4 (2020-07-23)

Bug Fixes

  • deps: update dependency graphql-tools to v6.0.15 (a45ece7)

Features

  • graphql,hooks: Add before hooks to graphql mutations (3448955)

0.17.3 (2020-07-17)

Bug Fixes

  • deps: update dependency apollo-server-express to v2.16.0 (0870afe)
  • graphql: Fix filters to transform to expected type #317 (0d28b0b)

0.17.2 (2020-07-17)

Bug Fixes

  • typeorm: Ensure record is entity instance when saving (3cdbbaf), closes #380

0.17.1 (2020-07-17)

Bug Fixes

  • deps: update dependency graphql-tools to v6.0.14 (acb7e48)

Features

  • complexity: Add complexity support for relations (aa85325)

0.17.0 (2020-07-16)

Bug Fixes

  • deps: update dependency graphql-tools to v6.0.13 (802bb5b)

Features

  • aggregations: Add aggregation support to sequelize (c37b7ae)
  • aggregations: Add aggregations interfaces (d67e733)
  • aggregations: Add aggregations to graphql (af075d2)
  • aggregations,relations: Add relation aggregation graphql enpoints (56bb7e0)
  • aggregations,relations,core: Add relation aggregation to core (a489588)
  • aggregations,sequelize: Add relation aggregation to sequelize (93e7c1b)
  • aggregations,sequelize: Fix aggregation on many-to-many relations (db6ecb2)
  • aggregations,typeorm: Add relation aggregation to typeorm (2bf35a9)
  • aggretations: Add aggregations support to typeorm (7233c23)

0.16.2 (2020-07-09)

Bug Fixes

  • deps: update dependency pg to v8.2.2 (cd7fbb5)
  • deps: update dependency pg to v8.3.0 (25c8dcb)
  • imports: Remove additional /src references (9528772)

0.16.1 (2020-07-07)

Bug Fixes

  • typeorm: Fix import path in relation service #363 (0e6d484)

0.16.0 (2020-07-05)

Bug Fixes

  • deps: update dependency apollo-server-express to v2.15.1 (29f2b72)
  • deps: update dependency graphql-tools to v6.0.12 (3048277)
  • deps: update dependency rxjs to v6.6.0 (cc356f9)
  • deps: update dependency sequelize to v5.22.2 (c04d1fc)
  • deps: update dependency sequelize to v5.22.3 (ac288e3)
  • sequelize: Change query to not use sub queries (80c69d6)

Features

  • core: Add type support for nest objects in filter (cd9d0b5)
  • graphql: Enable filtering on ORM relations (60229b8)
  • sequelize: Add support for querying for nested relations (92a51c1)
  • typeorm: Add support for filtering on relations (aa8788c)

0.15.1 (2020-06-27)

Bug Fixes

  • deps: update dependency graphql-tools to v6.0.11 (14416c4)
  • deps: update dependency sequelize to v5.22.1 (6ff765d)

0.15.0 (2020-06-23)

Features

  • graphql,connection: Add totalCount to connections (ed1e84a)

0.14.3 (2020-06-20)

Bug Fixes

  • deps: update dependency @apollo/federation to v0.16.9 (28ac98c)
  • graphql,subscriptions: Expose InjectPubSub decorator (867022e)

0.14.2 (2020-06-19)

Bug Fixes

  • typeorm: Allow using string based typeorm relations (55c157d)

0.14.1 (2020-06-19)

Bug Fixes

  • graphql: Allow custom scalars for comparisons (57cbe38)

0.14.0 (2020-06-18)

Bug Fixes

  • deps: update dependency @apollo/federation to v0.16.8 (01d05c1)
  • deps: update dependency @docusaurus/core to v2.0.0-alpha.58 (1060e05)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.58 (236cd18)
  • deps: update dependency apollo-server-express to v2.15.0 (355d22b)
  • deps: update dependency graphql-tools to v6.0.10 (005ee15)

Features

  • graphql,paging: Add NONE paging strategy (216d926)

0.13.2 (2020-06-14)

Bug Fixes

  • graphl,filters: Allow for enums when filtering (60dcc30)

0.13.1 (2020-06-12)

Bug Fixes

  • graphql,paging: Fix for #281 paging backwards windowing (c319344)

0.13.0 (2020-06-12)

Bug Fixes

  • deps: update dependency @apollo/federation to v0.16.6 (e51bb37)
  • deps: update dependency apollo-server-express to v2.14.4 (ae31896)
  • deps: update dependency graphql to v15.1.0 (e6362fe)
  • deps: update dependency graphql-tools to v6.0.9 (4d7ccc9)

Features

  • graphql: Add limit offset paging without connections (5fc3e90)

0.12.0 (2020-06-07)

Bug Fixes

  • deps: update dependency @apollo/federation to v0.16.4 (e000230)
  • deps: update dependency apollo-server-express to v2.14.2 [security] (36c9649)
  • deps: update dependency graphql-tools to v6.0.4 (aaa6233)
  • deps: update dependency graphql-tools to v6.0.5 (fe181ae)
  • deps: update dependency graphql-tools to v6.0.8 (27cb278)

Features

  • graphql: Add graphql subscriptions (5dc987f)

0.11.8 (2020-05-30)

Note: Version bump only for package nestjs-query

0.11.7 (2020-05-29)

Bug Fixes

  • deps: update dependency @apollo/federation to v0.16.1 (1fd84e1)
  • deps: update dependency @apollo/federation to v0.16.2 (ad047b3)
  • deps: update dependency @docusaurus/core to v2.0.0-alpha.56 (811d26d)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.56 (b7fd2af)
  • deps: update dependency apollo-server-express to v2.14.0 (8ca9ee5)
  • deps: update dependency apollo-server-express to v2.14.1 (4776e70)
  • deps: update dependency graphql-tools to v6.0.3 (15429a5)

0.11.6 (2020-05-26)

Bug Fixes

  • deps: update dependency graphql-tools to v6 (b1aeba1)

0.11.5 (2020-05-21)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.55 (8926e12)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.55 (1ed906f)

0.11.4 (2020-05-19)

Note: Version bump only for package nestjs-query

0.11.3 (2020-05-16)

Bug Fixes

  • deps: update dependency pg to v8.2.1 (4603b85)

0.11.2 (2020-05-14)

Bug Fixes

  • Fix lint issues (c3407c0)
  • deps: update dependency @apollo/federation to v0.16.0 (5a5acd6)
  • deps: update dependency apollo-server-express to v2.13.1 (49d214f)
  • deps: update dependency pg to v8.1.0 (42c7d01)
  • deps: update dependency pg to v8.2.0 (6e20417)

Features

  • graphql,core: Add support for custom services and assemblers (85e8658)

0.11.1 (2020-05-11)

Features

  • graphql: Add support for auto-generated federations (238f641)

0.11.0 (2020-05-09)

Bug Fixes

  • deps: update dependency @apollo/federation to v0.15.0 (b534056)
  • deps: update dependency apollo-server-express to v2.13.0 (7525af5)

Features

  • graphql: Add graphql module (282c421)
  • graphql: Add relation/connection decorators (a75cf96)

0.10.2 (2020-05-04)

Bug Fixes

  • sequelize: Update sequelize package deps to match hoisted (c7f5190)

0.10.1 (2020-05-02)

Bug Fixes

  • graphql: Fix paging to properly check next/previous page (13c7bd9)

0.10.0 (2020-04-29)

Bug Fixes

  • deps: update dependency @docusaurus/core to v2.0.0-alpha.54 (d6b7e6c)
  • deps: update dependency @docusaurus/preset-classic to v2.0.0-alpha.54 (fae7683)

Features

  • sequelize: Initial Sequelize support (bfcf436)
  • sequelize: More clean up of code (a72bce5)

0.9.0 (2020-04-26)

Bug Fixes

  • docs: remove unused imports in example page (a67ac24)

Features

  • typeorm: Add support for soft deletes (2ab42fa)

0.8.9 (2020-04-24)

Note: Version bump only for package nestjs-query

0.8.8 (2020-04-23)

Note: Version bump only for package nestjs-query

0.8.7 (2020-04-23)

Bug Fixes

  • deps: update dependency pg to v8.0.3 (6a726e9)

v0.8.6

  • chore(renovate): Renovate to include examples
  • chore(renovate): Renovate set ignorePaths to empty
  • fix(deps): pin dependencies
  • chore(deps): Update package-lock.json
  • chore(deps): Update postgres backing app to 11.7
  • docs(): Update Federation Docs
  • chore(lerna): add hoist to lerna.json
  • chore(deps): update dependency @nestjs/graphql to v7.3.4
  • chore(deps): update dependency @types/node to v13.13.2
  • chore(renovate): Update to automerge devDeps
  • chore(deps): update dependency coveralls to v3.0.13
  • chore(deps): update dependency eslint-config-prettier to v6.11.0

v0.8.5

  • feat(graphql): basic federation support.
  • docs(graphql): federation docs.

v0.8.4

  • docs(typeorm): Call out foreign keys in entity and DTO #84
  • docs(typeorm): Relations on an entity/dto #85
  • chore(): upgrade dependencies.

v0.8.3

  • [FIXED] Add support for extending abstract object types #82

v0.8.2

  • [TESTS] Updated graphql types tests to check schema rather than spies.

v0.8.1

  • [FIXED] Mysql error "LIMIT in subquery" #77
    • Changed nestjs-query/query-typeorm to not use subqueries to fetch relations.

v0.8.0

  • [FIXED] Defining additional UpdateDtos breaks Schema. #72

v0.7.5

  • [FIXED] Tables with composite primary keys are not quoted properly.
  • [DOCS] Added docs for working with multiple connections #73 - @johannesschobel

v0.7.4

  • Fix code formatting
  • Update root package.json with common dependencies

v0.7.3

  • [DOCS] Update docs to include a complete example of custom methods #64
  • [FIXED] Issue where creating or updating allows specifying primary keys #65

v0.7.2

  • [CHORE] Updated to @nestjs/graphql v7.1.3
  • Removed PartialType and PartialInputType in favor of @nestjs/graphql implementation.

v0.7.1

  • [FIXED] Issue where update input DTO was not automatically created

v0.7.0

  • Updated to @nestjs/graphql v7.x.
    • This was a passive change for the library usage however you should still follow the migration guide found here

v0.6.0

  • [FIXED] Get Underlying Entity Object #41
    • Changed TypeOrmQueryService to operate on the Entity
    • Added new AssemblerQueryService to translate between the DTO and Entity
  • [ADDED] New InjectTypeOrmQueryService decorator to auto-create a TypeOrm query service.

v0.5.1

  • [DOCS] Added clarification around individual resolvers and relations with examples #42
  • [ADDED] Exposed Relatable mixin from @nestjs-query/graphql #42

v0.5.0

  • Added decorators option to resolver options to allow providing custom decorators to endpoints #36

v0.4.0

  • Updated all mutations to take a single input argument with custom fields.
    • createOne(input: DTO) -> createOne(input: { [dtoName]: DTO })
    • createMany(input: DTO[]) -> createOne(input: { [pluralDTOName]: DTO[] })
    • updateOne(id: ID, input: UpdateDTO) -> createOne(input: { id: ID, update: UpdateDTO })
    • updateMany(filter: Filter<DTO>, input: UpdateDTO) -> createOne(input: { filter: Filter<DTO>, update: UpdateDTO })
    • deleteOne(input: ID) -> deleteOne(input: {id: ID})
    • deleteMany(input: Filter<DTO>) -> createOne(input: { filter: Filter<DTO> })
  • Updated docs to reflect changes.

v0.3.5

  • [FIXED] Validate Input for Create & Update #19

v0.3.4

  • [FIXED] Can't remove on Many-To-Many relations #31

v0.3.3

  • Update typescript to 3.8.
  • Update dependency versions.

v0.3.2

  • Switched to github actions

v0.3.1

  • Hardened TypeORM querying
    • Added filter for entity ids on relations to prevent querying for too many rows.
    • Qualify all filter and sorting columns, to prevent column name collisions.

v0.3.0

  • Added dataloader support!
  • Fixed issue with loading of many-to-many relations #22

v0.2.1

  • Fixed case where @FilterableField decorator was not passing arguments correctly to @Field decorator #20

v0.2.0

v0.1.0

v0.0.6

  • Dont allow empty filters with updateMany or deleteMany operations.

v0.0.5

  • Add ability to specify query defaults.
    • defaultResultSize - the default number of results to return from a query
    • maxResultsSize - the maximum number of results to return from a query
    • defaultSort - The default sort to apply to queries
    • defaultFilter - The default filter to apply to queries

v0.0.4

  • Add files field to @nestjs-query/core package.json

v0.0.3

  • Fix package READMEs
  • Add security scanning on sub modules.

v0.0.2

  • Add MIT license

v0.0.1

  • Initial Release