-
-
Notifications
You must be signed in to change notification settings - Fork 7
feat: codec completion — round-trip subset law, expression url codec & registry #748
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2a269c5
feat(codec-url-simple)!: enforce the round-trip subset law pointwise
tada5hi 4e7a0c7
feat(codec-url-simple): schema-aware encoding with parser-exact seman…
tada5hi 07be014
feat(codec-url-expression): url codec for the expression dialect
tada5hi b99a690
feat(codec-url): in-band codec identity & dialect registry
tada5hi 9001540
docs: url codec family, round-trip law & v1 migration notes
tada5hi f30fabc
fix: address pr review findings (#748)
tada5hi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| { | ||
| "name": "@rapiq/codec-url-expression", | ||
| "version": "1.0.0", | ||
| "description": "A package containing an url encoder & decoder for the expression dialect.", | ||
| "type": "module", | ||
| "main": "dist/index.mjs", | ||
| "types": "dist/index.d.mts", | ||
| "exports": { | ||
| "./package.json": "./package.json", | ||
| ".": { | ||
| "types": "./dist/index.d.mts", | ||
| "import": "./dist/index.mjs" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist/" | ||
| ], | ||
| "dependencies": { | ||
| "qs": "^6.15.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@rapiq/codec-url-simple": "^1.0.0", | ||
| "@rapiq/core": "^1.0.0", | ||
| "@rapiq/parser-expression": "^1.0.0", | ||
| "@rapiq/parser-simple": "^1.0.0", | ||
| "@types/qs": "^6.14.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "@rapiq/codec-url-simple": "^1.0.0", | ||
| "@rapiq/core": "^1.0.0", | ||
| "@rapiq/parser-expression": "^1.0.0", | ||
| "@rapiq/parser-simple": "^1.0.0" | ||
| }, | ||
| "scripts": { | ||
| "build:types": "tsc --noEmit -p tsconfig.build.json", | ||
| "build:js": "tsdown", | ||
| "build": "npm run build:types && npm run build:js", | ||
| "test": "vitest --config test/vitest.config.ts --run", | ||
| "test:coverage": "vitest --config test/vitest.config.ts --run --coverage", | ||
| "prepublishOnly": "npm run build" | ||
| }, | ||
| "author": { | ||
| "name": "Peter Placzek", | ||
| "email": "contact@tada5hi.net", | ||
| "url": "https://github.com/tada5hi" | ||
| }, | ||
| "license": "MIT", | ||
| "keywords": [ | ||
| "query", | ||
| "json", | ||
| "json-api", | ||
| "api", | ||
| "rest", | ||
| "api-utils", | ||
| "include", | ||
| "pagination", | ||
| "sort", | ||
| "fields", | ||
| "filter", | ||
| "relations", | ||
| "typescript" | ||
| ], | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/Tada5hi/rapiq.git", | ||
| "directory": "packages/codec-url-expression" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/Tada5hi/rapiq/issues" | ||
| }, | ||
| "homepage": "https://github.com/Tada5hi/rapiq#readme" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /* | ||
| * Copyright (c) 2026. | ||
| * Author Peter Placzek (tada5hi) | ||
| * For the full copyright and license information, | ||
| * view the LICENSE file that was distributed with this source code. | ||
| */ | ||
|
|
||
| /** | ||
| * Stable identifier of this codec (wire dialect), e.g. for the | ||
| * in-band `codec` parameter dispatched by a codec registry or an | ||
| * out-of-band content-negotiation header. | ||
| */ | ||
| export const URL_EXPRESSION_CODEC = 'url-expression'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| /* | ||
| * Copyright (c) 2026. | ||
| * Author Peter Placzek (tada5hi) | ||
| * For the full copyright and license information, | ||
| * view the LICENSE file that was distributed with this source code. | ||
| */ | ||
|
|
||
| export * from './module'; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.