Skip to content

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

Merged
kamilogorek merged 1 commit into
masterfrom
cyclical-objects
Jun 26, 2018
Merged

feat: Use proper object serializer to handle cyclical objects#1410
kamilogorek merged 1 commit into
masterfrom
cyclical-objects

Conversation

@kamilogorek
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

const orig = source[name];
source[name] = replacement(orig);
// tslint:disable:no-unsafe-any
source[name].__raven__ = true;
Copy link
Copy Markdown
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
chargome added a commit that referenced this pull request May 4, 2026
…abilities

Bumps testem to 3.20.0 in @sentry/ember and updates the lockfile
entry for @xmldom/xmldom@^0.8.0 to 0.8.13 to fix four high-severity
XML serialization vulnerabilities (CVE-2026-41673, CVE-2026-41672,
CVE-2026-41674, CVE-2026-41675).

Fixes Dependabot alerts #1413, #1412, #1411, #1410.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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