-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat(setGlobalConfig): add setGlobalConfig function #133
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #133 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 19 20 +1
Lines 354 365 +11
Branches 93 94 +1
=========================================
+ Hits 354 365 +11
Continue to review full report at Codecov.
|
Hey @PythonCreator27, thanks so much, this is great... before I even had a chance to think about this you did a whole implementation 😅 Yeah I think the extra schema is fine because ultimately we do want to validate this at run time, so it is worth it. And yes, I think we will need to merge a few levels deep. Ultimately the default config might include quite a lot, and we want the user to be able to override just a single option without needing to copy and paste all the original defaults. So thanks for thinking about that! Lastly, I edited your brief above to not auto-close #129 because I (right now) added a few other items to the TODO list there. 🙏 🙏 |
Merges config multiple levels deep. Also fixes docs and tests.
Massive thanks again, @PythonCreator27, this is really great, and full coverage, etc. Merging! 🙏 Re the anonymous interface, let's merge for now and I'll take another look at it when I get a chance. Thanks again! |
# [1.11.0](v1.10.4...v1.11.0) (2021-06-01) ### Bug Fixes * **deps:** update dependency ajv to ^8.1.0 ([1769641](1769641)) * **quoteCombine:** resolve `undefined` for missing symbols ([#150](#150)) ([f8c25e3](f8c25e3)) * **testing:** specify jest.js path, not bin ([#170](#170)) ([6772c8e](6772c8e)) ### Features * **options:** accept `date` option ([#186](#186)) ([11b8a72](11b8a72)) * add (friendly) warning when used in the browser ([3c4c5a0](3c4c5a0)), closes [#153](#153) * add insights module ([#169](#169)) ([4603232](4603232)) * **concurrency:** ability to limit max simultaneous requests ([#76](#76)) ([3424d44](3424d44)) * **modules:** build (true) esm, (interop) cjs modules; tests/readme ([#144](#144)) ([2182f6c](2182f6c)) * **setGlobalConfig:** add setGlobalConfig function ([#133](#133)) ([43ebaa4](43ebaa4))
🎉 This PR is included in version 1.11.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Relating to #129.
Changes
setGlobalConfig
functionsetGlobalConfig
Options
interface into a newinterfaces.ts
fileType
Comments/notes
@gadicc Is the name good? Also, all tests seem to pass, yet some unnecessary things have been added to the schema. I am not sure whether it is worth it.
Also, should this function merge config several levels deep, or not?