[COMPASS-4927] Remove mongodb-extended-json usage Created: 06/Jul/21  Updated: 29/Oct/23  Resolved: 03/Feb/22

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.31.0

Type: Task Priority: Major - P3
Reporter: Anna Henningsen Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by COMPASS-4080 npm deprecate mongodb-extended-json Closed
is duplicated by COMPASS-4094 Migration for extended json legacy to... Closed
Related
related to COMPASS-4926 mongodb-extended-json fails to serial... Closed
related to COMPASS-4903 Fix use of bson in Compass Closed
related to NODE-3247 Driver Handling of DBRefs Closed
is related to COMPASS-5372 BSONTimestamp value is not properly c... Closed
Story Points: 3
Documentation Changes: Not Needed
Sprint: Iteration Utica

 Description   

The package is deprecated and causes issues like COMPASS-4926. We should just stick with the bson package's EJSON implementation wherever possible.

This requires the fix for NODE-3247 to be released, as it solves a problem similar to COMPASS-4926.
This should work with bson 4.4.1.



 Comments   
Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • 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.
Branch: COMPASS-5417-sort-filters-on-entry-screen
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 04/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • 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.
Branch: 1.31-releases
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 04/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • 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.
Branch: mocha-automock-support
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • 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.
Branch: COMPASS-5470-improve-dark-theme-toggle-appearance
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • 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.
Branch: COMPASS-5481-use-one-react-root
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: fix: replace legacy EJSON with driver’s bson packages EJSON COMPASS-4927 (#2757)

  • 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.
Branch: main
https://github.com/mongodb-js/compass/commit/e654e1d639770a31ec4c341d01e9b070edc895ad

Comment by Githook User [ 03/Feb/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna@addaleax.net', 'username': 'addaleax'}

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

This fixes COMPASS-5372 (BSON Timestamp stringification) as well.
Branch: 4927-dev
https://github.com/mongodb-js/compass/commit/a6d1751ed8fe0162d746b2e5321c8991f3b18f39

Generated at Wed Feb 07 22:37:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.