13 KiB
@refinedev/nestjs-query
1.3.3
Patch Changes
-
#6133
788c7d0b56617306ea1f3070f7f3aa73e1c59e59Thanks @igordonin! - Custom requests now correctly support GET requests and makes uses of custom URL and headers.Resolves #6112
1.3.2
Patch Changes
-
#6023
82170288209653b096b996cf31854434d19c01cdThanks @yamadayutaka! - fix: can specify 0 as filter valueThe following values do not apply to the filter.
- null
- undefined
- NaN
- Infinity / -Infinity
The following values can apply to the filter.
- 0
- ""
Resolves #6022
1.3.0
Minor Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - feat(nestjs-query): implemented getApiUrlresolves #5606
Patch Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - fix: implement unimplemented operatorsThe following filter operators have been implemented.
containssncontainssstartswithsnstartswithsendswithsnendswithsnbetween
Resolves #6008
-
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - chore: addedtypequalifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
1.2.0
Minor Changes
-
#5945
e154d399afbfcc560ad3e349d0f76d2701ae866eThanks @aliemir! - feat(nestjs-query): implemented getApiUrlresolves #5606
Patch Changes
-
#5945
216d061513b84f1b19d4a31164b2342d824a5b2dThanks @aliemir! - fix: implement unimplemented operatorsThe following filter operators have been implemented.
containssncontainssstartswithsnstartswithsendswithsnendswithsnbetween
Resolves #6008
-
#5945
90930b381d8d369c63bc59beedf69c391875166dThanks @aliemir! - chore: addedtypequalifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
1.1.5
Patch Changes
-
#5928
db9756e7908Thanks @aliemir! - fix: type errors on typescript <5Due to the changes in #5881, typescript users below version 5 are facing type errors. This PR fixes the type errors by updating the file extensions required by the
d.mtsdeclaration files to provide a compatible declarations for both typescript 4 and 5 users.
1.1.4
Patch Changes
- #5881
ba719f6ea26Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions
1.1.3
Patch Changes
-
#5765
0c197d82393Thanks @aliemir! - refactor: package bundles and package.json configuration for exportsPreviously, Refine packages had exported ESM and CJS bundles with same
.jsextension and same types for both with.d.tsextensions. This was causing issues with bundlers and compilers to pick up the wrong files for the wrong environment. Now we're outputting ESM bundles with.mjsextension and CJS bundles with.cjsextension. Also types are now exported with both.d.mtsand.d.ctsextensions.In older versions ESM and CJS outputs of some packages were using wrong imports/requires to dependencies causing errors in some environments. This will be fixed since now we're also enforcing the module type with extensions.
Above mentioned changes also supported with changes in
package.jsonfiles of the packages to support the new extensions and types. All Refine packages now includeexportsfields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers. -
#5765
0c197d82393Thanks @aliemir! - Fixed thelodash-esimports for ESM builds to access the exports properly. -
#5754
56ed144a0f5Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752
1.1.2
Patch Changes
- #5695
79865affa1cThanks @BatuhanW! - chore: apply biome format and fix lint errors.
1.1.1
Patch Changes
- #5425
190af9fce2Thanks @aliemir! - Updated@refinedev/corepeer dependencies to latest (^4.46.1)
1.1.0
Minor Changes
-
#5409
0026fe34d0Thanks @BatuhanW! - feat: addgqlQueryandgqlMutationsupport.Previously,
@refinedev/nestjs-querypackage only supported GraphQL operations throughmeta.fields.Now we've added
gqlQueryandgqlMutationfields inmetaobject.You can utilize these fields along with
graphql-tagpackage to build your queries/mutations.See the updated documentation for more information: https://refine.dev/docs/packages/data-providers/nestjs-query
Query Example:
import { useList } from "@refinedev/core"; import gql from "graphql-tag"; const PRODUCTS_QUERY = gql` query ProductsList( $paging: OffsetPaging! $filter: BlogPostFilter $sorting: [BlogPostSort!]! ) { products(paging: $paging, filter: $filter, sorting: $sorting) { nodes { id name } totalCount } } `; const { data } = useList({ resource: "products", meta: { gqlQuery: PRODUCTS_QUERY }, });Mutation Example:
import { useForm } from "@refinedev/core"; import gql from "graphql-tag"; const CREATE_PRODUCT_MUTATION = gql` mutation CreateProduct($input: CreateProductInput!) { createOneProduct(input: $input) { id name } } `; const { formProps } = useForm({ resource: "products", meta: { gqlMutation: CREATE_PRODUCT_MUTATION }, });
1.0.9
Patch Changes
- #5330
7c8827b43dThanks @BatuhanW! - chore: upgrade nock library version to ^13.4.0
1.0.8
Patch Changes
- #5114
00a9252c5deThanks @alicanerdurmaz! - fixed:dataProvider.customuses diffrent client istance. From now on,dataProvider.customuses the same client istance as otherdataProvidermethods.
1.0.7
Patch Changes
- #5114
00a9252c5deThanks @alicanerdurmaz! - fixed:dataProvider.customuses diffrent client istance. From now on,dataProvider.customuses the same client istance as otherdataProvidermethods.
1.0.6
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
1.0.5
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
1.0.4
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.3
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.2
Patch Changes
-
#4824
0206dcb8828Thanks @aliemir! - feat: initialize nestjs-query package.🎉🎉🎉 This is the initial release of our nestjs-query data provider. https://tripss.github.io/nestjs-query 🎉🎉🎉
Supported features:
- filters ✅
- sorters ✅
- offset pagination ✅
- offset connections ✅
- subscriptions ✅
Usage example:
import graphqlDataProvider, { GraphQLClient, liveProvider, } from "@refinedev/nestjs-query"; import { createClient } from "graphql-ws"; const API_URL = `https://api.nestjs-query.refine.dev/graphql`; const WS_URL = `wss://api.nestjs-query.refine.dev/graphql`; const client = new GraphQLClient(API_URL); const wsClient = createClient(WS_URL); export const dataProvider = graphqlDataProvider(client); export const liveProvider = liveProdiver(wsClient); export const App = () => ( <Refine dataProvider={dataProvider} liveProvider={liveProvider}> //... </Refine> );
1.0.1
Patch Changes
-
#4824
0206dcb8828Thanks @aliemir! - feat: initialize nestjs-query package.🎉🎉🎉 This is the initial release of our nestjs-query data provider. https://tripss.github.io/nestjs-query 🎉🎉🎉
Supported features:
- filters ✅
- sorters ✅
- offset pagination ✅
- offset connections ✅
- subscriptions ✅
Usage example:
import graphqlDataProvider, { GraphQLClient, liveProvider, } from "@refinedev/nestjs-query"; import { createClient } from "graphql-ws"; const API_URL = `https://api.nestjs-query.refine.dev/graphql`; const WS_URL = `wss://api.nestjs-query.refine.dev/graphql`; const client = new GraphQLClient(API_URL); const wsClient = createClient(WS_URL); export const dataProvider = graphqlDataProvider(client); export const liveProvider = liveProdiver(wsClient); export const App = () => ( <Refine dataProvider={dataProvider} liveProvider={liveProvider}> //... </Refine> );