Skip to content

Releases: premieroctet/next-crud

v4.0.1

02 May 09:01
37a586c
Compare
Choose a tag to compare

What's Changed

  • fix: Enable getRouteType() to parse full urls by @malaney in #68

New Contributors

Full Changelog: v4.0.0...v4.0.1

v4.0.0

03 Apr 10:10
b48d461
Compare
Choose a tag to compare

New feature

  • Add App Router support #53

Breaking changes

v3.0.0

18 Sep 15:16
f9e1e5f
Compare
Choose a tag to compare
  • Add support for Prisma 5
  • Upgrade to TypeScript 5

v2.3.2

22 May 16:12
af26326
Compare
Choose a tag to compare
  • Update documentation for Query Params: change $nin -> $notin (#51)
  • Remove request destructure to make callbacks work correctly (#52)

v2.3.1

19 Aug 15:50
Compare
Choose a tag to compare

Breaking change

The NextCrud function is now asynchronous, which requires to change the way you are creating the handler.

Old version:

const handler = NextCrud({
  adapter: new PrismaAdapter({
    prismaClient: myPrismaClientInstance,
  }),
})

export default handler

New version:

const handler = async (req, res) => {
  const nextCrudHandler = await NextCrud({
    adapter: new PrismaAdapter({
      prismaClient: myPrismaClientInstance,
    }),
  })

  return nextCrudHandler(req, res)
}

export default handler

v2.2.0

20 May 16:33
Compare
Choose a tag to compare
  • Fix issue #35

v2.1.4

02 Feb 15:58
Compare
Choose a tag to compare

HttpError extends from ApiError class exported from next (#33)

v2.1.3

22 Nov 14:59
Compare
Choose a tag to compare
  • fix: includes properties undefined error by @jzyds in #32

v2.0.0

05 Oct 12:18
Compare
Choose a tag to compare

Breaking Changes

NextCrud

You can now move your NextCrud function(s) to a single file, for example under pages/api/[...nextcrud].ts. Check the documentation for more info.

Prisma adapter

You will need to pass the prisma client instance as a parameter of the instance.
The resourceName property has been removed.

More info on the on the documentation

New feature

We now support Swagger. For Prisma user, you have nothing to do. For non Prisma users, you will need to implement the getModelsJsonSchema. More info on the documentation

v1.2.0

28 Sep 12:19
Compare
Choose a tag to compare
  • Add pagination improvements (#24)