-
Notifications
You must be signed in to change notification settings - Fork 885
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
Make the nestedKey only take effect in the serialized object and fix … #885
Conversation
…error detection and serialization (closes pinojs#883) proto.js * Copy the message property in case the obj is an error and there is a msg specified * Load the msg as a property of obj if metadata is needed symbols.js * Add nestedKeyStrSym to quickly cache the string tools.js * Manually build the stringify for performance reasons (not too pretty...) error.test.js + serializers.test.js * Add a test for the new nestedKey interaction
I finally managed to make the http test run on local... new antivirus :) I will fix the coverage ASAP. |
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.
From the cloud run it seems there are some regression on the benchmarks.
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.
I think this PR is addressing multiple things at once. If that is the case, please reduce it down to one issue and open subsequent PRs for other issues.
I addressed the issues present in the PR comments. |
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.
I don't have time to work through this right now. @mcollina and @davidmarkclements are you able to review?
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.
lgtm, benchmarks are ok
@@ -40,7 +40,7 @@ test('child loggers works', async ({ ok, same, is }) => { | |||
is(child, this.lastLogger) | |||
is(30, this.lastLevel) | |||
is('a msg', this.lastMsg) | |||
same(this.lastObj, { from: 'child', msg: 'a msg' }) | |||
same(this.lastObj, { from: 'child' }) |
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.
I have a feeling this might be a semver-major change.
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.
I agree, should I update the version in the package.json?
My last review question never got answered. Is this PR solving multiple issues at once? |
@jsumners it is now addressing a single issue (the nested property). |
@jsumners are you ok in landing this? |
@mcollina sorry, I'm having a really hard time following this and just don't have enough time to devote to it right now. I leave it up to you and @davidmarkclements. |
6bc1b93
to
546616f
Compare
Can you please rebase it? I'm sorry we've let this stale. |
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.
lgtm
@mcollina looks like one check entitled What should I do? |
GitHub Actions is having issues at this time https://www.githubstatus.com/incidents/m16jzl31gnqt |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
…error detection and serialization (closes #883)
proto.js
symbols.js
tools.js
error.test.js + serializers.test.js