Closed gwax closed 1 month ago
Latest commit: 1c1b899e413be568572cbb3bccfca0c1034f8abb
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The pull request introduces several modifications across multiple files, primarily focusing on encoding and decoding functionalities. Key changes include disabling a TypeScript ESLint rule, updating export statements in the index file, and adding new encoding and decoding options in various modules. Additionally, several redundant functions and type definitions were removed from the sveltekit-search-params.ts
file, while new type definitions were added to enhance type safety. A new module for handling the ssp
component was also created, encapsulating various encoding and decoding methods.
File | Change Summary |
---|---|
eslint.config.js | - Rule @typescript-eslint/no-explicit-any set to 'off'. |
src/lib/index.ts | - Added import and export for ssp from ./ssp . - Updated export for queryParameters and queryParam to remove file extension. |
src/lib/ssp/index.ts | - Added default export encapsulating encoding/decoding options for various data types. |
src/lib/ssp/json-encode.ts | - Added objectEncodeAndDecodeOptions and arrayEncodeAndDecodeOptions functions with overloads for encoding/decoding objects and arrays. |
src/lib/ssp/lz-encode.ts | - Introduced lzEncodeAndDecodeOptions function with overloads for LZ compression encoding/decoding. |
src/lib/ssp/util.ts | - Added primitiveEncodeAndDecodeOptions function and overloads for ssp . |
src/lib/sveltekit-search-params.ts | - Removed types EncodeAndDecodeOptions and StoreOptions . - Removed encoding functions and ssp constant. - Updated batchTimeout type to ReturnType<typeof setTimeout> . |
src/lib/types.ts | - Added new types: EncodeAndDecodeOptions and StoreOptions to enhance type safety and configurability. |
ssp
object and enhancing the encoding and decoding functions, which are directly related to the modifications made in the main PR regarding the src/lib/sveltekit-search-params.ts
file.🐰 In the meadow, changes sprout,
New rules and exports, without a doubt.
Encoding options, all in a row,
With cleaner paths, watch them glow!
Fromany
to types, we leap and bound,
In our code, new treasures found! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 1c1b899e413be568572cbb3bccfca0c1034f8abb |
Latest deploy log | https://app.netlify.com/sites/sveltekit-search-params/deploys/670acbb52b43df0008ade311 |
Deploy Preview | https://deploy-preview-116--sveltekit-search-params.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
I was looking to offer another ssp definition but I was worried the main file was getting a bit too large, so I split the existing definitions out first.
Summary by CodeRabbit
New Features
Bug Fixes
Chores
any
type in TypeScript without linting errors.