Skip to content

feat: Use proper object serializer to handle cyclical objects #1410

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

Merged
merged 1 commit into from
Jun 26, 2018

Conversation

kamilogorek
Copy link
Contributor

We don't really need a "deserializer" for cyclic states and we never had it for raven-js.
However, if we'll ever need it, we should use https://github.com/WebReflection/circular-json/ or https://github.com/WebReflection/flatted

@kamilogorek kamilogorek requested a review from HazAT June 25, 2018 13:48
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@edd08f9). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1410   +/-   ##
=========================================
  Coverage          ?   84.89%           
=========================================
  Files             ?       33           
  Lines             ?      788           
  Branches          ?      125           
=========================================
  Hits              ?      669           
  Misses            ?      112           
  Partials          ?        7
Impacted Files Coverage Δ
packages/utils/src/object.ts 100% <100%> (ø)

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 edd08f9...f9b4a21. Read the comment docs.

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

Approved, only missed minor thing.

@@ -59,9 +137,7 @@ export function fill(
): void {
const orig = source[name];
source[name] = replacement(orig);
// tslint:disable:no-unsafe-any
source[name].__raven__ = true;
Copy link
Member

Choose a reason for hiding this comment

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

I missed this in a prev PR, but can we rename this to __sentry__ 😬

@kamilogorek kamilogorek merged commit ccf2f3d into master Jun 26, 2018
@kamilogorek kamilogorek deleted the cyclical-objects branch June 26, 2018 08:01
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.

3 participants