Skip to content

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented Feb 3, 2022

fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.

chore(compass-crud): drop js-beautify for EJSON

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.

Description

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

We use js-beautify to nicely indent generated JSON strings. Given
that this is already a built-in feature of JSON, it seems cleaner
and simpler to use that built-in functionality instead of
a full-blown JS beautifier.
@addaleax addaleax merged commit e654e1d into main Feb 3, 2022
@addaleax addaleax deleted the 4927-dev branch February 3, 2022 16:23
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.

2 participants