Skip to content
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

feat: json reviver and replacer utils #396

Merged
merged 4 commits into from
Aug 14, 2023
Merged

Conversation

peterpeterparker
Copy link
Member

Motivation

The other day I was that close to use these functions we are using in NNS Dapp in another project. Ultimately I did not but it can be someday useful for the community to use these JSON reviver and replacer. That's why it's cool to move these from the dapp to the utils lib.

Changes

  • integrate JSON reviver and replacer utils from NNS Dapp

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2023

size-limit report 📦

Path Size
@dfinity/ckbtc 7.84 KB (0%)
@dfinity/cmc 998 B (0%)
@dfinity/ledger 2.51 KB (0%)
@dfinity/nns 30.8 KB (0%)
@dfinity/nns-proto 76.3 KB (0%)
@dfinity/sns 13.7 KB (0%)
@dfinity/utils 3.9 KB (+4.39% 🔺)
@dfinity/rosetta-client -19 B (0%)
@dfinity/ic-management 2.04 KB (0%)

Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's a good idea

@peterpeterparker peterpeterparker merged commit e5679f7 into main Aug 14, 2023
9 checks passed
@peterpeterparker peterpeterparker deleted the feat/json-utils branch August 14, 2023 05:26
github-merge-queue bot pushed a commit to dfinity/nns-dapp that referenced this pull request Aug 14, 2023
# Motivation

JSON reviver and replacer have been copied / moved to `@dfinity/utils`

# PRs

- [x] dfinity/ic-js#396

# Changes

- replace source for reviver and replacer
- bump ic-js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants