diff --git a/.changeset/fixes-and-patches.md b/.changeset/fixes-and-patches.md deleted file mode 100644 index 94fe9d8..0000000 --- a/.changeset/fixes-and-patches.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -"@djs-core/runtime": patch -"@djs-core/dev": patch -"@djs-core/db": patch ---- - -Security, reliability, and DX fixes across the core packages. - -### `@djs-core/runtime` - -- Catch event listener failures in `EventHandler` instead of crashing the process -- Close database, DataStore, and cron jobs in `DjsClient.destroy()` -- Route slash command sync through `ApplicationCommandHandler` only (no duplicate compiler path) -- Cap autocomplete responses at 25 choices with a warning when trimmed -- Cache SQLite prepared statements in `DataStore` for store/get/delete/cleanup - -### `@djs-core/dev` - -- Include modals in the production generated entry -- Lazy-load ts-morph for `djs-core check` and keep it external in the CLI bundle -- Read CLI `--version` from `@djs-core/dev` `package.json` -- Sanitize `djs-core generate` output paths against directory traversal -- Harden generated Dockerfiles (`USER bun`, healthcheck, optional migrations copy) and add `--docker` -- Handle `SIGTERM` during `djs-core dev` shutdown (Docker/systemd) -- Improve dev HMR: unload buttons before reload, warn when `djs.config.ts` changes, document restart requirements -- Generate `PostgresJsDatabase` types for PostgreSQL (matches `postgres-js` runtime driver) - -### `@djs-core/db` - -- Parse `db:` from `djs.config.ts` with a strict JSON-like parser instead of `new Function()` -- Throw when `autoMigrate` is enabled but `db/migrations` is missing (default examples use `autoMigrate: false`) diff --git a/.changeset/testing-kit.md b/.changeset/testing-kit.md deleted file mode 100644 index 3f3a074..0000000 --- a/.changeset/testing-kit.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@djs-core/testing": major -"@djs-core/dev": minor -"@djs-core/runtime": patch ---- - -Add `@djs-core/testing` with mock helpers for commands, components, events, and autocomplete. Ship it via `@djs-core/dev`, add `djs-core test`, and export ButtonHandler/SelectMenuHandler from runtime. diff --git a/bun.lock b/bun.lock index 6f33f77..fb6f150 100644 --- a/bun.lock +++ b/bun.lock @@ -28,7 +28,7 @@ }, "packages/db": { "name": "@djs-core/db", - "version": "1.0.0", + "version": "1.0.1", "dependencies": { "@libsql/client": "0.15.10", "drizzle-orm": "0.44.5", @@ -41,7 +41,7 @@ }, "packages/dev": { "name": "@djs-core/dev", - "version": "5.5.0", + "version": "5.6.0", "bin": { "djs-core": "dist/index.js", }, @@ -65,7 +65,7 @@ }, "packages/runtime": { "name": "@djs-core/runtime", - "version": "1.14.0", + "version": "1.14.1", "dependencies": { "@djs-core/db": "workspace:*", "cron": "4.4.0", @@ -83,7 +83,7 @@ }, "packages/testing": { "name": "@djs-core/testing", - "version": "0.0.1", + "version": "1.0.0", "devDependencies": { "@djs-core/runtime": "workspace:*", "@types/bun": "1.3.14", diff --git a/packages/db/CHANGELOG.md b/packages/db/CHANGELOG.md index a39fc59..7d29e78 100644 --- a/packages/db/CHANGELOG.md +++ b/packages/db/CHANGELOG.md @@ -1,5 +1,35 @@ # @djs-core/db +## 1.0.1 + +### Patch Changes + +- 98a977f: Security, reliability, and DX fixes across the core packages. + + ### `@djs-core/runtime` + + - Catch event listener failures in `EventHandler` instead of crashing the process + - Close database, DataStore, and cron jobs in `DjsClient.destroy()` + - Route slash command sync through `ApplicationCommandHandler` only (no duplicate compiler path) + - Cap autocomplete responses at 25 choices with a warning when trimmed + - Cache SQLite prepared statements in `DataStore` for store/get/delete/cleanup + + ### `@djs-core/dev` + + - Include modals in the production generated entry + - Lazy-load ts-morph for `djs-core check` and keep it external in the CLI bundle + - Read CLI `--version` from `@djs-core/dev` `package.json` + - Sanitize `djs-core generate` output paths against directory traversal + - Harden generated Dockerfiles (`USER bun`, healthcheck, optional migrations copy) and add `--docker` + - Handle `SIGTERM` during `djs-core dev` shutdown (Docker/systemd) + - Improve dev HMR: unload buttons before reload, warn when `djs.config.ts` changes, document restart requirements + - Generate `PostgresJsDatabase` types for PostgreSQL (matches `postgres-js` runtime driver) + + ### `@djs-core/db` + + - Parse `db:` from `djs.config.ts` with a strict JSON-like parser instead of `new Function()` + - Throw when `autoMigrate` is enabled but `db/migrations` is missing (default examples use `autoMigrate: false`) + ## 1.0.0 ### Major Changes diff --git a/packages/db/package.json b/packages/db/package.json index bb86c98..0c244f2 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -1,6 +1,6 @@ { "name": "@djs-core/db", - "version": "1.0.0", + "version": "1.0.1", "description": "Native Drizzle database layer for djs-core", "type": "module", "main": "./dist/index.js", diff --git a/packages/dev/CHANGELOG.md b/packages/dev/CHANGELOG.md index 8219ecf..997130f 100644 --- a/packages/dev/CHANGELOG.md +++ b/packages/dev/CHANGELOG.md @@ -1,5 +1,45 @@ # @djs-core/dev +## 5.6.0 + +### Minor Changes + +- 482824f: Add `@djs-core/testing` with mock helpers for commands, components, events, and autocomplete. Ship it via `@djs-core/dev`, add `djs-core test`, and export ButtonHandler/SelectMenuHandler from runtime. + +### Patch Changes + +- 98a977f: Security, reliability, and DX fixes across the core packages. + + ### `@djs-core/runtime` + + - Catch event listener failures in `EventHandler` instead of crashing the process + - Close database, DataStore, and cron jobs in `DjsClient.destroy()` + - Route slash command sync through `ApplicationCommandHandler` only (no duplicate compiler path) + - Cap autocomplete responses at 25 choices with a warning when trimmed + - Cache SQLite prepared statements in `DataStore` for store/get/delete/cleanup + + ### `@djs-core/dev` + + - Include modals in the production generated entry + - Lazy-load ts-morph for `djs-core check` and keep it external in the CLI bundle + - Read CLI `--version` from `@djs-core/dev` `package.json` + - Sanitize `djs-core generate` output paths against directory traversal + - Harden generated Dockerfiles (`USER bun`, healthcheck, optional migrations copy) and add `--docker` + - Handle `SIGTERM` during `djs-core dev` shutdown (Docker/systemd) + - Improve dev HMR: unload buttons before reload, warn when `djs.config.ts` changes, document restart requirements + - Generate `PostgresJsDatabase` types for PostgreSQL (matches `postgres-js` runtime driver) + + ### `@djs-core/db` + + - Parse `db:` from `djs.config.ts` with a strict JSON-like parser instead of `new Function()` + - Throw when `autoMigrate` is enabled but `db/migrations` is missing (default examples use `autoMigrate: false`) + +- Updated dependencies [98a977f] +- Updated dependencies [482824f] + - @djs-core/runtime@1.14.1 + - @djs-core/db@1.0.1 + - @djs-core/testing@1.0.0 + ## 5.5.0 ### Minor Changes diff --git a/packages/dev/package.json b/packages/dev/package.json index 0c67261..c513d56 100644 --- a/packages/dev/package.json +++ b/packages/dev/package.json @@ -1,6 +1,6 @@ { "name": "@djs-core/dev", - "version": "5.5.0", + "version": "5.6.0", "description": "Development CLI tools for djs-core Discord bot framework", "type": "module", "types": "./dist/index.d.ts", diff --git a/packages/runtime/CHANGELOG.md b/packages/runtime/CHANGELOG.md index 62577a0..8fb40e3 100644 --- a/packages/runtime/CHANGELOG.md +++ b/packages/runtime/CHANGELOG.md @@ -1,5 +1,39 @@ # @djs-core/runtime +## 1.14.1 + +### Patch Changes + +- 98a977f: Security, reliability, and DX fixes across the core packages. + + ### `@djs-core/runtime` + + - Catch event listener failures in `EventHandler` instead of crashing the process + - Close database, DataStore, and cron jobs in `DjsClient.destroy()` + - Route slash command sync through `ApplicationCommandHandler` only (no duplicate compiler path) + - Cap autocomplete responses at 25 choices with a warning when trimmed + - Cache SQLite prepared statements in `DataStore` for store/get/delete/cleanup + + ### `@djs-core/dev` + + - Include modals in the production generated entry + - Lazy-load ts-morph for `djs-core check` and keep it external in the CLI bundle + - Read CLI `--version` from `@djs-core/dev` `package.json` + - Sanitize `djs-core generate` output paths against directory traversal + - Harden generated Dockerfiles (`USER bun`, healthcheck, optional migrations copy) and add `--docker` + - Handle `SIGTERM` during `djs-core dev` shutdown (Docker/systemd) + - Improve dev HMR: unload buttons before reload, warn when `djs.config.ts` changes, document restart requirements + - Generate `PostgresJsDatabase` types for PostgreSQL (matches `postgres-js` runtime driver) + + ### `@djs-core/db` + + - Parse `db:` from `djs.config.ts` with a strict JSON-like parser instead of `new Function()` + - Throw when `autoMigrate` is enabled but `db/migrations` is missing (default examples use `autoMigrate: false`) + +- 482824f: Add `@djs-core/testing` with mock helpers for commands, components, events, and autocomplete. Ship it via `@djs-core/dev`, add `djs-core test`, and export ButtonHandler/SelectMenuHandler from runtime. +- Updated dependencies [98a977f] + - @djs-core/db@1.0.1 + ## 1.14.0 ### Minor Changes diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 989dd30..b3673e3 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@djs-core/runtime", - "version": "1.14.0", + "version": "1.14.1", "description": "Runtime library for djs-core Discord bot framework", "type": "module", "main": "./dist/index.js", diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index 407c417..bf71412 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -2,6 +2,18 @@ ## 1.0.0 +### Major Changes + +- 482824f: Add `@djs-core/testing` with mock helpers for commands, components, events, and autocomplete. Ship it via `@djs-core/dev`, add `djs-core test`, and export ButtonHandler/SelectMenuHandler from runtime. + +### Patch Changes + +- Updated dependencies [98a977f] +- Updated dependencies [482824f] + - @djs-core/runtime@1.14.1 + +## 1.0.0 + ### Minor Changes - Initial release: `testCommand`, `testButton`, `testModal`, `testSelectMenu`, `testContextMenu`, `testAutocomplete`, `testEvent` diff --git a/packages/testing/package.json b/packages/testing/package.json index 2bbbac0..a989148 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@djs-core/testing", - "version": "0.0.1", + "version": "1.0.0", "description": "Testing utilities and mocks for djs-core Discord bots", "type": "module", "main": "./dist/index.js",