-
-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: clean up API surface, fix metadata, and improve internals #770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export const OptionsSymbol = Symbol.for('ReqBodyOptions'); | ||
| export const BodySymbol = Symbol.for('ReqBody'); | ||
| export const RawBodySymbol = Symbol.for('ReqRawBody'); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,9 @@ | ||
| import { | ||
| parse, | ||
| stringify, | ||
| } from 'qs'; | ||
|
|
||
| import { | ||
| query, | ||
| } from './module'; | ||
|
|
||
| export * from './handler'; | ||
| export * from './module'; | ||
| export * from './request'; | ||
| export * from './type'; | ||
|
|
||
| export { | ||
| stringify, | ||
| parse, | ||
| }; | ||
|
|
||
| export default query; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| "name": "@routup/rate-limit-redis", | ||
| "version": "3.1.2", | ||
| "type": "module", | ||
| "description": "Red adapter for the routup rate-limit plugin.", | ||
| "description": "Redis adapter for the routup rate-limit plugin.", | ||
| "exports": { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
|
|
@@ -18,6 +18,8 @@ | |
| "build": "npm run build:js && npm run build:types", | ||
| "build:js": "rimraf ./dist && tsdown", | ||
| "build:types": "tsc --noEmit -p tsconfig.build.json", | ||
| "test": "vitest run --config ./test/vitest.config.ts", | ||
| "test:coverage": "vitest run --config ./test/vitest.config.ts --coverage", | ||
|
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Verify the vitest config file exists and check vitest version in package files
# Check if the vitest config file exists
fd -t f "vitest.config.ts" packages/rate-limit-redis/test/
# Check vitest version in package.json files
rg -g "package*.json" '"vitest":\s*"[^"]+"' packages/rate-limit-redis/Repository: routup/plugins Length of output: 105 🏁 Script executed: cat -n packages/rate-limit-redis/package.json | head -40Repository: routup/plugins Length of output: 1480 🏁 Script executed: cat -n packages/rate-limit-redis/package.json | tail -30Repository: routup/plugins Length of output: 1081 Add vitest to devDependencies. The test scripts reference 🤖 Prompt for AI Agents |
||
| "lint": "eslint ./src", | ||
| "lint:fix": "npm run lint -- --fix" | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
ilingo npm package version 5.0.0 breaking changes migration guide💡 Result:
ilingo v5.0.0 (released 2026-01-14) — breaking changes + migration
Breaking changes
ilingono longer supports CommonJS (require(...)). Your project/build must consume it as ESM. [1]Storeinterface was renamed toIStore. Update any imports/annotations/implements accordingly. [1]Migration checklist (from 4.4.x → 5.0.0)
Update imports to ESM
Rename
Store→IStoreeverywhereStore, change them to implementIStore. [1]Notes:
@ilingo/vueto ESM-only and renamedStore→IStorethere as well. [1]Source(s)
[1] GitHub Releases (tada5hi/ilingo) – entries for
ilingo: v5.0.0and related packages, including the “⚠ BREAKING CHANGES” section. (github.com)Citations:
🏁 Script executed:
Repository: routup/plugins
Length of output: 1397
🏁 Script executed:
Repository: routup/plugins
Length of output: 4165
🏁 Script executed:
# Read types.ts to see what's imported from ilingo cat -n packages/i18n/src/types.tsRepository: routup/plugins
Length of output: 526
🏁 Script executed:
Repository: routup/plugins
Length of output: 40
🏁 Script executed:
Repository: routup/plugins
Length of output: 2654
🏁 Script executed:
Repository: routup/plugins
Length of output: 206
🏁 Script executed:
Repository: routup/plugins
Length of output: 201
Document the ilingo v5.0.0 upgrade in the CHANGELOG.
The bump from
^3.2.0to^5.0.0is a major version jump that introduces breaking changes in ilingo (ESM-only requirement and Store→IStore rename). While the@routup/i18npackage source code is compatible with ilingo v5, downstream consumers should be notified about this dependency upgrade. Add a CHANGELOG entry documenting this breaking change for consumers who use ilingo v3 directly or have transitive dependencies on it.🤖 Prompt for AI Agents