Repository navigation
Configuration rework - #811
Merged
Merged
Conversation
BREAKING CHANGE: This drops support for previousl deprecated configuration values and types, and makes the checks a lot stricter than before. Many configuration options no longer accept `null` values and instead rely on values being present or `undefined` instead. In other cases, configuration options that previously e.g. accepted string values and automatically converted them to numbers now only accept actual numbers. Some options explicitly allow `null` values to be passed in and take that as a hint to use whatever is configured on the SQL Server instead.
This new `config.autehntication` option allows specifying the authentication type to be used (`default` or `ntlm`, more to come soon) and takes a set of `options` for the specified type. Existing `config.userName`, `config.password` and `config.domain` options will continue working for the time being, but will be removed in the future.
Suraiya-Hameed
approved these changes
Oct 23, 2018
Member
|
Thanks @arthurschreiber :) Can you update the github.io too or perhaps create an issue for now so we remember to do it later? |
Collaborator
Author
|
🎉 This PR is included in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: This drops support for previousl deprecated
configuration values and types, and makes the checks a lot stricter than
before.
Many configuration options no longer accept
nullvalues and insteadrely on values being present or
undefinedinstead.In other cases, configuration options that previously e.g. accepted
string values and automatically converted them to numbers now only
accept actual numbers.
Some options explicitly allow
nullvalues to be passed in and takethat as a hint to use whatever is configured on the SQL Server instead.
Another change included here is a rework of how authentication options are specified. Instead of having to specify authentication options via the top level
userName,passwordanddomainoptions, a newauthenticationsub object is added, which can hold thetypeof authentication to use (eitherdefaultorntlmright now). Additionally, each authentication type also takes a set ofoptions.When
config.authenticationis not specified,tediouswill still recognize the old config options, but will emit a deprecation warning.This new configuration scheme for authentication will allow us to easily support other authentication types and their options, without having to add more and more top-level config options.
These changes are a pre-requisite to #707.
The changes in this pull request are pretty similar to #692, but updated to the latest changes that were made in the
masterbranch. Thank you @Hadis-Fard for your work!One thing I want to point out here is that I did not refactor these checks into re-usable functions, as keeping these checks inline will ensure that
flowcan actually understand their meaning, even though we don't really useflowto check theconnection.jsfile yet. 🤷♂️