-
-
Notifications
You must be signed in to change notification settings - Fork 1
Replace local json-pointer implementation with @jsonjoy.com/json-pointer package #43
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
Replace local json-pointer implementation with @jsonjoy.com/json-pointer package #43
Conversation
…on-pointer package Co-authored-by: streamich <[email protected]>
Co-authored-by: streamich <[email protected]>
src/json-pointer/ folder. Install @jsonjoy.com/json-pointer package, and use the necessary types/code from there.| import {genShallowReader} from '../../msgpack/shallow-read'; | ||
| import {CborEncoder} from '../CborEncoder'; | ||
| import {CborDecoder} from '../CborDecoder'; | ||
| import {Path} from '../../json-pointer'; |
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.
Import as type.
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.
Updated to use type import in commit 2a00fb5.
| import {CONST, ERROR, MAJOR} from './constants'; | ||
| import {CborDecoderBase} from './CborDecoderBase'; | ||
| import {JsonPackValue} from '../JsonPackValue'; | ||
| import type {Path} from '../json-pointer'; |
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.
Import as type.
| import {genShallowReader} from '../shallow-read'; | ||
| import {MsgPackEncoder} from '../MsgPackEncoder'; | ||
| import {MsgPackDecoder} from '../MsgPackDecoder'; | ||
| import {Path} from '../../json-pointer'; |
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.
Import as type.
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.
Updated to use type import in commit 2a00fb5.
| @@ -1,6 +1,6 @@ | |||
| import {JsonPackValue} from '.'; | |||
| import {MsgPackDecoderFast} from './MsgPackDecoderFast'; | |||
| import type {Path} from '../json-pointer'; | |||
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.
Import as type.
| @@ -1,4 +1,4 @@ | |||
| import {Path} from '../json-pointer'; | |||
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.
Import as type.
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.
Updated to use type import in commit 2a00fb5.
Co-authored-by: streamich <[email protected]>
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR removes the local
src/json-pointer/folder and replaces it with the official@jsonjoy.com/json-pointerpackage to reduce code duplication and maintenance overhead.Changes Made
src/json-pointer/folder containing basic type definitions@jsonjoy.com/[email protected]as a dependencyWhy This Change?
The local json-pointer implementation only provided basic type definitions (
PathStepandPath), which are now available from the official@jsonjoy.com/json-pointerpackage. This package provides:Files Changed
src/cbor/CborDecoder.ts- Updated import statementsrc/cbor/__tests__/shallow-read.genShallowRead.spec.ts- Updated import statementsrc/msgpack/MsgPackDecoder.ts- Updated import statementsrc/msgpack/__tests__/shallow-read.genShallowRead.spec.ts- Updated import statementsrc/msgpack/shallow-read.ts- Updated import statementsrc/json-pointer/index.ts- Removedsrc/json-pointer/types.ts- RemovedVerification
PathandPathSteptypes work identically to the previous implementationThis change maintains full backward compatibility while reducing the codebase size and leveraging the official json-pointer implementation.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.