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
Bump serialize-javascript from 1.9.1 to 2.1.1 #9025
Bump serialize-javascript from 1.9.1 to 2.1.1 #9025
Conversation
@dependabot rebase |
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 1.9.1 to 2.1.1. - [Release notes](https://github.com/yahoo/serialize-javascript/releases) - [Commits](yahoo/serialize-javascript@v1.9.1...v2.1.1) Signed-off-by: dependabot[bot] <support@github.com>
b38b44b
to
3c1e3dc
Compare
The v2 is not backward-compatible with the v1 for the following reason: yahoo/serialize-javascript#57 The second commit that should fix the build mark the serialized content as JSON so that the Default output without any specific option: var serialize = require("serialize-javascript")
console.log(serialize({
str : 'string',
num : 0,
obj : {foo: 'foo'},
arr : [1, 2, 3],
bool : true,
nil : null,
undef: undefined,
date: new Date("Thu, 28 Apr 2016 22:02:17 GMT"),
map: new Map([['hello', 'world']]),
set: new Set([123, 456]),
fn: function echo(arg) { return arg; },
re: /([^\s]+)/g
})) Output:
It does not return a valid JSON payload, which is not unexpected because this lib "serialize[s] JavaScript to a superset of JSON that includes regular expressions, dates and functions." (quoted from the README). Now, with the console.log(serialize({
str : 'string',
num : 0,
obj : {foo: 'foo'},
arr : [1, 2, 3],
bool : true,
nil : null,
undef: undefined,
date: new Date("Thu, 28 Apr 2016 22:02:17 GMT"),
map: new Map([['hello', 'world']]),
set: new Set([123, 456]),
fn: function echo(arg) { return arg; },
re: /([^\s]+)/g
}, { isJSON: true })) Output:
|
Codecov Report
@@ Coverage Diff @@
## master #9025 +/- ##
=======================================
Coverage 98.11% 98.11%
=======================================
Files 272 272
Lines 7581 7581
Branches 1373 1373
=======================================
Hits 7438 7438
Misses 129 129
Partials 14 14
Continue to review full report at Codecov.
|
@willdurand So objects and arrays are supported, but not maps, sets, functions or regexes? That seems fine to me. Do we have a test in place that verifies that the result of calling |
The existing test suite should cover that already. |
Bumps serialize-javascript from 1.9.1 to 2.1.1.
Release notes
Sourced from serialize-javascript's releases.
Commits
433fc9c
2.1.116a68ab
Merge pull request from GHSA-h9rv-jmmf-4pgx3bab6de
Bump mocha from 6.2.1 to 6.2.2 (#60)7a6b13d
Bump mocha from 6.2.0 to 6.2.1 (#59)40cf793
Migrate to nyc from istanbul31c98ad
2.1.09b47a96
Feat. New optionignoreFunction
according to issue#32 (#58)c65dd4a
2.0.01879481
Revert "Revert "support serialize undefined (#54)""Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot ignore this [patch|minor|major] version
will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.