openpanel/packages/nestjs-query/CHANGELOG.md
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

13 KiB

@refinedev/nestjs-query

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.0

Minor Changes

Patch Changes

1.2.0

Minor Changes

Patch Changes

1.1.5

Patch Changes

  • #5928 db9756e7908 Thanks @aliemir! - fix: type errors on typescript <5

    Due 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

1.1.3

Patch Changes

  • #5765 0c197d82393 Thanks @aliemir! - refactor: package bundles and package.json configuration for exports

    Previously, 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 include exports fields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers.

  • #5765 0c197d82393 Thanks @aliemir! - Fixed the lodash-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

1.1.1

Patch Changes

1.1.0

Minor Changes

  • #5409 0026fe34d0 Thanks @BatuhanW! - feat: add gqlQuery and gqlMutation support.

    Previously, @refinedev/nestjs-query package only supported GraphQL operations through meta.fields.

    Now we've added gqlQuery and gqlMutation fields in meta 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

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 other dataProvider 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 other dataProvider 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 for esbuild 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 for esbuild 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>
    );