Skip to content
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

Deprecate redundant bundled libraries #1050

Open
wants to merge 1 commit into
base: feature/use-native-atob-btoa
Choose a base branch
from

Conversation

appurva21
Copy link
Member

Changes

Deprecate following libraries in favour of better alternatives:

  • atob: native atob function
  • btoa: native btoa function
  • crypto-js: native crypto object
  • tv4: ajv
  • backbone: 👋

@appurva21 appurva21 changed the base branch from develop to feature/use-native-atob-btoa September 24, 2024 18:09
@appurva21 appurva21 force-pushed the feature/deprecate-redundant-libs branch from 62aa4c7 to 91365d2 Compare September 24, 2024 18:10
'postman.clearGlobalVariables': 'pm.globals.clear()',
'postman.clearGlobalVariable': 'pm.globals.unset()',
'postman.getResponseCookie': 'pm.cookies.get()',
'postman.getResponseHeader': 'pm.response.headers.get()'
Copy link
Member Author

Choose a reason for hiding this comment

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

Diff due to addition of ""

responseBody: '"pm.response.text()"',
iteration: '"pm.info.iteration"',
_: '"require(\'lodash\')"',
CryptoJS: 'global "crypto" object',
Copy link
Member Author

@appurva21 appurva21 Sep 24, 2024

Choose a reason for hiding this comment

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

  1. Removed alternative for Backbone as the lib is itself deprecated now
  2. Update alternative for CryptoJS

@appurva21 appurva21 force-pushed the feature/deprecate-redundant-libs branch from f7e8378 to 4d1e196 Compare September 25, 2024 14:54
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (feature/use-native-atob-btoa@4505c79). Learn more about missing BASE report.

Additional details and impacted files
@@                       Coverage Diff                       @@
##             feature/use-native-atob-btoa    #1050   +/-   ##
===============================================================
  Coverage                                ?   52.77%           
===============================================================
  Files                                   ?       12           
  Lines                                   ?      612           
  Branches                                ?      146           
===============================================================
  Hits                                    ?      323           
  Misses                                  ?      249           
  Partials                                ?       40           
Flag Coverage Δ
unit 52.77% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant