@nestjs-kit/better-auth 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -29,7 +29,7 @@ It supersedes the deprecated `nestjs-slightly-better-auth`; [Migrate from `nestj
29
29
  pnpm add @nestjs-kit/better-auth better-auth
30
30
  ```
31
31
 
32
- Peer dependencies: `@nestjs/common` and `@nestjs/core` 12, `better-auth` 1.7.5 or newer (below 2), `reflect-metadata` and `rxjs`. The package requires Node.js 24.11 or newer (`engines.node` is `>=24.11.0`). Install the Nest platform adapter your application uses, `@nestjs/platform-express` or `@nestjs/platform-fastify`; the `./express` and `./fastify` entries import neither at runtime.
32
+ Peer dependencies: `@nestjs/common` and `@nestjs/core` 12, `better-auth` 1.7.7 or newer (below 2), `reflect-metadata` and `rxjs`. The package requires Node.js 24.11 or newer (`engines.node` is `>=24.11.0`). Install the Nest platform adapter your application uses, `@nestjs/platform-express` or `@nestjs/platform-fastify`; the `./express` and `./fastify` entries import neither at runtime.
33
33
 
34
34
  The `./testing` and `./testing/conformance` entries also need the optional peer `@nestjs/testing` 12; the root entry never loads it or a test runner. API keys use Better Auth's `@better-auth/api-key` plugin, which the application installs and registers itself (`pnpm add @better-auth/api-key`); the `./api-key` entry never imports it. [Compatibility](#compatibility) lists the tested versions and module systems.
35
35
 
@@ -77,13 +77,13 @@ Nest's gRPC transport uses `@grpc/grpc-js` and `@grpc/proto-loader`, Kafka uses
77
77
  | -------------------------------- | ------------------------------------------------- | -------------------------------------------------------------------------------- |
78
78
  | Node.js | 24.11.0 or newer | 24.11.0 and the current LTS |
79
79
  | `@nestjs/common`, `@nestjs/core` | `^12.0.3` | 12.0.3 and the newest 12.x release, with the matching `@nestjs/platform-express` |
80
- | `better-auth` | `>=1.7.5 <2` | 1.7.5 and the newest 1.x release |
80
+ | `better-auth` | `>=1.7.7 <2` | 1.7.7 and the newest 1.x release |
81
81
  | TypeScript declarations | `nodenext`, `node16` ESM and `bundler` resolution | TypeScript 5.9, the newest 6.x and 7 in each resolution mode |
82
82
  | Bundlers | esbuild, `nest build --webpack` | esbuild 0.28 and Nest CLI 12 with webpack 5 |
83
83
 
84
84
  The packaging tests pack this package, install the tarball with pnpm into temporary applications outside the workspace and run them with the peers installed at their declared floors and at the newest versions inside the peer ranges. The newest versions are those that pnpm's default minimum release age admits, so a new release enters the matrix after that delay. Each application compiles one Nest source as ESM and as CommonJS, signs up users of a default and a named Better Auth instance, calls a guarded route of each with its session cookie, checks that neither instance accepts the other's cookie, and closes. CI runs these tests on the current Node.js LTS and on Node.js 24.11.0.
85
85
 
86
- The declared floors are the supported floors. NestJS 11 and Better Auth releases before 1.7.5 are outside the peer ranges and are not tested.
86
+ The declared floors are the supported floors. NestJS 11 and Better Auth releases before 1.7.7 are outside the peer ranges and are not tested.
87
87
 
88
88
  Module systems:
89
89
 
@@ -105,7 +105,7 @@ Toolchains:
105
105
  | esbuild ESM bundles with `--splitting`, esbuild CommonJS bundles, `nest build --webpack` | Supported and tested |
106
106
  | TypeScript `node16` CommonJS files that import NestJS 12 or Better Auth | Unsupported: their declarations are ESM only |
107
107
  | CommonJS with `--no-experimental-require-module` | Unsupported: only `./platform` and `./fastify` load |
108
- | NestJS 11, Better Auth before 1.7.5 | Unsupported: outside the peer ranges |
108
+ | NestJS 11, Better Auth before 1.7.7 | Unsupported: outside the peer ranges |
109
109
  | TypeScript before 5.9, the Nest CLI's rspack builder, webpack bundles of `node_modules`, other bundlers | Untested |
110
110
 
111
111
  The packaging tests also inspect the packed archive. It contains only `package.json`, this README, the license and the `dist` files that the export map reaches; source maps name only this package's sources, and runtime maps embed them. Each entry exports exactly the names listed in [`fixtures/public-api.json`](fixtures/public-api.json), and no emitted file has a default export or top-level `await`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs-kit/better-auth",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "A Better Auth integration for NestJS with Express and Fastify platforms, Socket.IO and ws gateways, microservice RPC transports, and admin, organization and API-key authorization",
5
5
  "license": "MIT",
6
6
  "author": "thilllon",
@@ -254,7 +254,7 @@
254
254
  "@nestjs/microservices": "^12.0.3",
255
255
  "@nestjs/testing": "^12.0.3",
256
256
  "@nestjs/websockets": "^12.0.3",
257
- "better-auth": ">=1.7.5 <2",
257
+ "better-auth": ">=1.7.7 <2",
258
258
  "graphql": "^16.14.2",
259
259
  "reflect-metadata": "^0.2.2",
260
260
  "rxjs": "^7.8.2"