Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/express-request-types.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/pluggable-logger.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @exortek/nosql-sanitize-core

## 3.2.0

### Minor Changes

- d82d6bc: - New `debug.logger` option: any object with `error`, `warn`, `info`, `debug` and `trace` methods (pino, `fastify.log`, `console`) receives the debug output instead of `console.log`. It is called pino-style, `logger[level]({ module: 'nosql-sanitize', context, data? }, message)`. `debug.level`, `logSanitizedValues` and `logPatternMatches` apply as before. Default `null` keeps the current `console.log` output.
- Fastify: `debug.logger: 'request'` logs through each request's `request.log` (so lines carry the request id) and through `fastify.log` outside a request. Works in plugin options, route `config.mongoSanitize` and manual mode.

## 3.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@exortek/nosql-sanitize-core",
"version": "3.1.0",
"version": "3.2.0",
"description": "Core sanitization engine for NoSQL injection prevention",
"main": "src/index.js",
"types": "types/index.d.ts",
Expand Down
8 changes: 8 additions & 0 deletions packages/express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @exortek/express-mongo-sanitize

## 3.1.1

### Patch Changes

- 8991270: `req.sanitize()` (manual mode) is now visible to TypeScript. The type augmentation targeted `module 'express'`, which never reached the `req` that route handlers receive; it now augments the global `Express.Request`.
- Updated dependencies [d82d6bc]
- @exortek/nosql-sanitize-core@3.2.0

## 3.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@exortek/express-mongo-sanitize",
"version": "3.1.0",
"version": "3.1.1",
"description": "Express middleware for NoSQL injection prevention — sanitizes request data",
"main": "src/index.js",
"type": "commonjs",
Expand Down
12 changes: 12 additions & 0 deletions packages/fastify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @exortek/fastify-mongo-sanitize

## 3.2.0

### Minor Changes

- d82d6bc: - New `debug.logger` option: any object with `error`, `warn`, `info`, `debug` and `trace` methods (pino, `fastify.log`, `console`) receives the debug output instead of `console.log`. It is called pino-style, `logger[level]({ module: 'nosql-sanitize', context, data? }, message)`. `debug.level`, `logSanitizedValues` and `logPatternMatches` apply as before. Default `null` keeps the current `console.log` output.
- Fastify: `debug.logger: 'request'` logs through each request's `request.log` (so lines carry the request id) and through `fastify.log` outside a request. Works in plugin options, route `config.mongoSanitize` and manual mode.

### Patch Changes

- Updated dependencies [d82d6bc]
- @exortek/nosql-sanitize-core@3.2.0

## 3.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@exortek/fastify-mongo-sanitize",
"version": "3.1.0",
"version": "3.2.0",
"description": "Fastify plugin for NoSQL injection prevention — sanitizes request data",
"main": "src/index.js",
"type": "commonjs",
Expand Down
Loading