Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add JavaScriptCodec to serialize JavaScript data structure #61

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

Closed
gfx wants to merge 6 commits into master from javascript_codec

Conversation

gfx
Copy link
Member

@gfx gfx commented Jun 6, 2019
edited
Loading

This is an experimental feature to serialize and deserialize JavaScript data structure, just like as https://github.com/yahoo/serialize-javascript

I'm investigating that it really improves performance when serialize-javascript is replaced to msgpack, so it is marked as DO NOT MERGE for now.

Resolve #58

See also

case "undefined": {
return undefined;
}
case "Map": {
Copy link
Collaborator

@sergeyzenchenko sergeyzenchenko Jun 7, 2019

Choose a reason for hiding this comment

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

I would move strings to Enum

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly.

@gfx gfx force-pushed the javascript_codec branch from 94a75e2 to f156fae Compare June 11, 2019 14:01
Copy link

codecov-io commented Jun 11, 2019
edited
Loading

Codecov Report

Merging #61 into master will decrease coverage by 0.09%.
The diff coverage is 95.34%.

Impacted file tree graph

@@ Coverage Diff @@
## master #61 +/- ##
=========================================
- Coverage 96.9% 96.81% -0.1% 
=========================================
 Files 15 16 +1 
 Lines 905 942 +37 
 Branches 183 194 +11 
=========================================
+ Hits 877 912 +35 
- Misses 28 30 +2
Impacted Files Coverage Δ
src/ExtensionCodec.ts 100% <100%> (ø) ⬆️
src/index.ts 100% <100%> (ø) ⬆️
src/JavaScriptCodec.ts 94.44% <94.44%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aed070f...a5a5d1b. Read the comment docs.

Copy link
Member Author

gfx commented Jun 12, 2019

@sergeyzenchenko what do you think of it?

Copy link
Member Author

gfx commented Feb 13, 2020

Copy link
Member Author

gfx commented Jun 8, 2020
edited
Loading

@gfx gfx closed this Jun 8, 2020
@gfx gfx deleted the javascript_codec branch June 8, 2020 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@sergeyzenchenko sergeyzenchenko sergeyzenchenko left review comments

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Works as replacement of serialize-javascript

AltStyle によって変換されたページ (->オリジナル) /