Skip to content

Commit b5d7ffc

Browse files
authored
1.0.3 (#44)
* chore: patch transitive dependency vulnerabilities ## Changed - Pin patched versions of vulnerable transitive deps via pnpm.overrides (hono, @hono/node-server, vite, postcss, path-to-regexp, picomatch, brace-expansion, ip-address, fast-uri) - Regenerate pnpm-lock.yaml so overrides take effect ## New - Add pnpm.overrides block in package.json scoped to vulnerable version ranges * chore: bump version to 1.0.3 ## Changed - Bump package version from 1.0.2 to 1.0.3 * chore: pin pnpm overrides to majors and declare node engines Constrains pnpm.overrides to ^x.y.z so future lockfile regenerations can't silently pull in breaking majors (vite was resolving to 8.x and @hono/node-server to 2.x). Adds engines.node >=20.19.0 to match vite 7's minimum and warn consumers on unsupported Node versions. * chore: enable npm provenance on publish ## Changed - Pass --provenance to pnpm publish in ops/publish-npm.sh - Grant id-token: write permission to npm-publish workflow for OIDC signing
1 parent 3f2cfeb commit b5d7ffc

4 files changed

Lines changed: 833 additions & 408 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
name: Build and Publish
1111
runs-on: ubuntu-latest
1212

13+
permissions:
14+
contents: read
15+
id-token: write
16+
1317
steps:
1418
- name: Checkout code
1519
uses: actions/checkout@v4

ops/publish-npm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ pnpm run build
2525

2626
# Publish to npm
2727
echo "Publishing to npm..."
28-
pnpm publish --no-git-checks --access public
28+
pnpm publish --no-git-checks --access public --provenance
2929

3030
echo "Package published successfully!"

package.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@translated/lara-mcp",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Lara API official MCP server",
55
"author": {
66
"name": "Translated",
@@ -16,6 +16,9 @@
1616
"url": "https://github.com/translated/lara-mcp/issues"
1717
},
1818
"type": "module",
19+
"engines": {
20+
"node": ">=20.19.0"
21+
},
1922
"main": "dist/index.js",
2023
"types": "dist/index.d.ts",
2124
"bin": {
@@ -70,5 +73,21 @@
7073
"tsx": "^4.21.0",
7174
"typescript": "^5.9.3",
7275
"vitest": "^3.2.4"
76+
},
77+
"pnpm": {
78+
"overrides": {
79+
"brace-expansion@>=1.0.0 <1.1.12": "^1.1.12",
80+
"brace-expansion@>=2.0.0 <2.0.3": "^2.0.3",
81+
"brace-expansion@>=3.0.0 <3.0.1": "^3.0.1",
82+
"brace-expansion@>=4.0.0 <5.0.5": "^5.0.5",
83+
"fast-uri@<3.1.2": "^3.1.2",
84+
"picomatch@<4.0.4": "^4.0.4",
85+
"path-to-regexp@>=8.0.0 <8.4.2": "^8.4.2",
86+
"postcss@<8.5.10": "^8.5.10",
87+
"vite@<7.3.3": "^7.3.3",
88+
"hono@<4.12.18": "^4.12.18",
89+
"@hono/node-server@<1.19.14": "^1.19.14",
90+
"ip-address@<10.1.1": "^10.1.1"
91+
}
7392
}
7493
}

0 commit comments

Comments
 (0)