Preparing convict 6#353
Preparing convict 6#353A-312 wants to merge 26 commits intomozilla:feat-multi-packages-splitfrom A-312:feat-multi-packages-split
Conversation
BREAKCHANGES LIST :
CHANGELOG :Some of my change are tacit, I will try to add all of my tacit change here : |
…de review on coercing
+ normalize simple and double quotes
|
@madarche This PR is ready and the 6.0.0 too. 😀 |
|
when can we expect 6.0 to hit the shelf? saving quite some time on refactoring due to the fix with the dot notation object properties in the branch. |
|
(The new dot notation doesn't work well with backslash #354 (comment) ) |
|
I will make another PR (for 6.0.0), to support |
- Add `schema.required = true` - Improve schema parsing with `format: [ typeof this !== 'object' ]` - Transform: `$~default` to `default` - Fix: `.getSchema/getSchemaString()` to proper schema - Add `opt.strictParsing = true`, will throw an error if default or format are omitted - Improve error for users : .defaut() and .reset() errors + parents rewrited error.
|
My PR is ready @madarche. I hope that all my change will be ok with convict way. |
|
@vladikoff madarche seems to be inactive this month (The last weeks, I didn't get answer in #350), I think he got lot of things to do in IRL. I made lot of change, I don't know if he will have enough time to watch/review to merge my work. Do you think you can have a look ? Also, @zaverden do you think you can review my changes in the README ? My english is not perfect and that will help the mozilla team to review/merge my PR. |
zaverden
left a comment
There was a problem hiding this comment.
I have run these changes through grammarly.com and there are results.
Co-Authored-By: Denis Zavershinskiy <zaverden@gmail.com>
|
Done, thanks you. Is there any other non-sense ? |
|
I'm away next week, will take a look when back |
|
ping @vladikoff Also I would to know : #350 (comment) If I mark Something like this : convict.merge = function (source) {
if (typeof source === 'string')
loadFile(source)
else
load(source)
} |
|
@madarche @vladikoff I don't want to be insistent but I made a lot of work to improve convict, do you need help for this repository ? Should I wait more ? Should I make my own fork (but I like and understand the convict way & project) ? |
|
@A-312 your work is really really appreciated. I promise I'll deal with this PR before Saturday. |
|
@A-312 this is a quite a big work altogether now, hence the time that it takes to review it. |
|
I am traveling again, however I will be able to post a new version to npm when it is ready. Won't have time to deep dive into the changes for a few weeks. |
|
@A-312 I've not totally finished to read all the proposed changes. But at this point there is one change that I don't agree with: it's the use of Chai.js, because Chai.js has a design mistake: cf. https://github.com/moll/js-must/#asserting-on-property-access. With Should.js it's still possible to use the unsafe syntax, but at least it's not recommended/suggested. So I'll not merge this specific PR, but will use it, as a guideline, to do the merge work on my side. Thanks for all the work nonetheless. |
|
@madarche It is why I use EDIT: The output of must is hard to read and less readable than chai.js. To many conflict, you will never have enough time to merge all my change... |
|
Can we discuss about that on IRC or discord, or other thing ? |
7064166 to
051dd99
Compare
|
@A-312 I've merged the first PRs and merged the Please don't work on any other PR or modification for now. I'll be online in a very asynchronous manner in the following days. But I'll continue the review work. Thank you |
|
I will do the thing on my own way. (take the time you want, don't waste your time on this PR if you have lot of things to do IRL, I know it takes a long time to resolve conflicts) Also i want to stay author of my commit/change i made. |


Depending of #350 I will merge all my PRs into my branch to save the time on several rebase/merge/conflict resolving.
TODO :
undefinedprevents format from being checked #278, fix: Improve .defaut() and .reset() errors for users #349, fix: Add option: Properties with default of undefined [do/do not] behave like properties that have not been specified #355, fix: We can not doconvict(config.getSchema())#356)fix: #288