13 KiB
@refinedev/nestjs-query
1.3.3
Patch Changes
-
#6133
788c7d0b56617306ea1f3070f7f3aa73e1c59e59
Thanks @igordonin! - Custom requests now correctly support GET requests and makes uses of custom URL and headers.Resolves #6112
1.3.2
Patch Changes
-
#6023
82170288209653b096b996cf31854434d19c01cd
Thanks @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
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - feat(nestjs-query): implemented getApiUrlresolves #5606
Patch Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - fix: implement unimplemented operatorsThe following filter operators have been implemented.
containss
ncontainss
startswiths
nstartswiths
endswiths
nendswiths
nbetween
Resolves #6008
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - chore: addedtype
qualifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
1.2.0
Minor Changes
-
#5945
e154d399afbfcc560ad3e349d0f76d2701ae866e
Thanks @aliemir! - feat(nestjs-query): implemented getApiUrlresolves #5606
Patch Changes
-
#5945
216d061513b84f1b19d4a31164b2342d824a5b2d
Thanks @aliemir! - fix: implement unimplemented operatorsThe following filter operators have been implemented.
containss
ncontainss
startswiths
nstartswiths
endswiths
nendswiths
nbetween
Resolves #6008
-
#5945
90930b381d8d369c63bc59beedf69c391875166d
Thanks @aliemir! - chore: addedtype
qualifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
1.1.5
Patch Changes
-
#5928
db9756e7908
Thanks @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.mts
declaration files to provide a compatible declarations for both typescript 4 and 5 users.
1.1.4
Patch Changes
- #5881
ba719f6ea26
Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions
1.1.3
Patch Changes
-
#5765
0c197d82393
Thanks @aliemir! - refactor: package bundles and package.json configuration for exportsPreviously, Refine packages had exported ESM and CJS bundles with same
.js
extension and same types for both with.d.ts
extensions. 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.mjs
extension and CJS bundles with.cjs
extension. Also types are now exported with both.d.mts
and.d.cts
extensions.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.json
files of the packages to support the new extensions and types. All Refine packages now includeexports
fields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers. -
#5765
0c197d82393
Thanks @aliemir! - Fixed thelodash-es
imports for ESM builds to access the exports properly. -
#5754
56ed144a0f5
Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752
1.1.2
Patch Changes
- #5695
79865affa1c
Thanks @BatuhanW! - chore: apply biome format and fix lint errors.
1.1.1
Patch Changes
- #5425
190af9fce2
Thanks @aliemir! - Updated@refinedev/core
peer dependencies to latest (^4.46.1
)
1.1.0
Minor Changes
-
#5409
0026fe34d0
Thanks @BatuhanW! - feat: addgqlQuery
andgqlMutation
support.Previously,
@refinedev/nestjs-query
package only supported GraphQL operations throughmeta.fields
.Now we've added
gqlQuery
andgqlMutation
fields inmeta
object.You can utilize these fields along with
graphql-tag
package 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
7c8827b43d
Thanks @BatuhanW! - chore: upgrade nock library version to ^13.4.0
1.0.8
Patch Changes
- #5114
00a9252c5de
Thanks @alicanerdurmaz! - fixed:dataProvider.custom
uses diffrent client istance. From now on,dataProvider.custom
uses the same client istance as otherdataProvider
methods.
1.0.7
Patch Changes
- #5114
00a9252c5de
Thanks @alicanerdurmaz! - fixed:dataProvider.custom
uses diffrent client istance. From now on,dataProvider.custom
uses the same client istance as otherdataProvider
methods.
1.0.6
Patch Changes
-
#5022
80513a4e42f
Thanks @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
80513a4e42f
Thanks @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
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.3
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
1.0.2
Patch Changes
-
#4824
0206dcb8828
Thanks @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
0206dcb8828
Thanks @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> );