Skip to content

Commit

Permalink
chore: dep update
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Nov 3, 2024
1 parent 99d893f commit 077d9b6
Show file tree
Hide file tree
Showing 13 changed files with 2,562 additions and 2,585 deletions.
5,115 changes: 2,546 additions & 2,569 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@middy/monorepo",
"version": "6.0.0-alpha.0",
"version": "6.0.0-beta.0",
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda",
"private": true,
"type": "module",
Expand All @@ -17,7 +17,7 @@
"test:unit": "cd packages/$PACKAGE && npm run test:unit",
"test:benchmark": "cd packages/$PACKAGE && npm run test:benchmark",
"test:packages": "npm run test:packages:typings && npm run test:packages:unit",
"test:packages:unit": "node --test --experimental-test-coverage --experimental-test-module-mocks ./packages/**/__tests__/*.js",
"test:packages:unit": "node --test --experimental-test-coverage ./packages/**/__tests__/*.js",
"test:packages:benchmark": "npm run test:benchmark --workspaces",
"test:packages:typings": "ls packages | xargs -I {} tsd packages/{}",
"test:llrt": "cd llrt && npm test",
Expand Down Expand Up @@ -61,7 +61,7 @@
"husky": "^9.0.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"tinybench": "^2.5.1",
"tinybench": "^3.0.0",
"ts-standard": "^12.0.0",
"tsd": "^0.31.0",
"typescript": "^5.4.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudwatch-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"url": "https://github.com/sponsors/willfarrell"
},
"dependencies": {
"aws-embedded-metrics": "4.1.1"
"aws-embedded-metrics": "4.2.0"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.101"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"url": "https://github.com/sponsors/willfarrell"
},
"devDependencies": {
"@datastream/core": "0.0.38",
"@datastream/core": "0.0.40",
"@types/aws-lambda": "^8.10.76",
"@types/node": "^20.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/http-content-encoding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@middy/util": "6.0.0-alpha.0"
},
"devDependencies": {
"@datastream/core": "0.0.38",
"@datastream/core": "0.0.40",
"@middy/core": "6.0.0-alpha.0"
},
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
Expand Down
2 changes: 1 addition & 1 deletion packages/http-content-negotiation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"dependencies": {
"@middy/util": "6.0.0-alpha.0",
"negotiator": "0.6.3"
"negotiator": "1.0.0"
},
"devDependencies": {
"@middy/core": "6.0.0-alpha.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/http-security-headers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ interface Options {
}
}

type WithFalseValues<T> = { [K in keyof T]: T[K] | false }
type WithBoolValues<T> = { [K in keyof T]: T[K] | boolean }

declare function httpSecurityHeaders(
options?: WithFalseValues<Options>
options?: WithBoolValues<Options>
): middy.MiddlewareObj

export default httpSecurityHeaders
4 changes: 2 additions & 2 deletions packages/http-security-headers/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ middleware = httpSecurityHeaders({
},
contentSecurityPolicy: {
'default-src': "'none'",
sandbox: '',
reportOnly: true
sandbox: ''
},
contentSecurityPolicyReportOnly: true,
crossOriginEmbedderPolicy: {
policy: 'require-corp'
},
Expand Down
2 changes: 1 addition & 1 deletion packages/input-output-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"url": "https://github.com/sponsors/willfarrell"
},
"devDependencies": {
"@datastream/core": "0.0.38",
"@datastream/core": "0.0.40",
"@middy/core": "6.0.0-alpha.0",
"@types/node": "^20.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@middy/core": "6.0.0-alpha.0",
"@types/http-errors": "^2.0.0",
"ajv-bsontype": "^1.0.7",
"ajv-cmd": "0.5.0"
"ajv-cmd": "^0.7.0"
},
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
}
2 changes: 1 addition & 1 deletion packages/validator/transpile.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const compileSchema = (schema, options = {}) => {
const ajvDefaults = {
strict: true,
coerceTypes: 'array', // important for query string params
allErrors: false, // As per AJV security guidance
allErrors: true, // required for ajvErrors
useDefaults: 'empty',
messages: true // needs to be true to allow multi-locale errorMessage to work
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/middlewares/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Transpile JSON-Schema in to JavaScript. Default ajv plugins used: `ajv-i18n`, `a

- `schema` (object) (required): JSON-Schema object
- `ajvOptions` (object) (default `undefined`): Options to pass to [ajv](https://ajv.js.org/docs/api.html#options)
class constructor. Defaults are `{ strict: true, coerceTypes: 'array', allErrors: false, useDefaults: 'empty', messages: true }`.
class constructor. Defaults are `{ strict: true, coerceTypes: 'array', allErrors: true, useDefaults: 'empty', messages: true }`.

## transpileLocale

Expand Down
2 changes: 1 addition & 1 deletion website/docs/upgrade/5-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ No change

### [validator](/docs/middlewares/validator)

- Remove `allErrors:true` from default options.
No change

### [warmup](/docs/middlewares/warmup)

Expand Down

0 comments on commit 077d9b6

Please sign in to comment.