-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update to use TypeScript 2.0 😄 (breaking)
It's finally here! 🎆 This refactor updates the way we perform module resolution to make use of @types/<lib>, removing the dependency on typings, improves the way the library is bundled while still providing type hints (smaller downloads and faster npm installs) and makes creating validation plugins far easier (with the addition of the this:<type> operator in TypeScript 2.0). We've also gone through the codebase and updated it to make use of strict null checking, which should help prevent a couple of small edge cases going forward; things that may have been missed during testing. To compliment that, we've also added support for type checking of your condition and update arguments, making those more intuitive to use and more robust against typos. All this goodness comes at the cost of possible breakage in the way you use the API, specifically if you add support for strict null checking to your project, which will enforce some more stringent rules regarding when things can be used. If you're checking return values for `null` you will also find that a number of them have been replaced with `undefined`, hopefully this doesn't affect too many of you (because of how easy it is to write `if (x) { ... }` instead, but be aware of the change if you routinely write `if (x === null) { ... }` in your handlers.
- Loading branch information
1 parent
cd4f4fe
commit ba773d0
Showing
124 changed files
with
399 additions
and
31,032 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
Properties/ | ||
bin/ | ||
obj/ | ||
*.suo | ||
*.user | ||
*.sublime* | ||
node_modules/ | ||
.vs | ||
*.dat | ||
.idea | ||
*.tmp | ||
dist | ||
node_modules | ||
coverage/ | ||
.tscache | ||
doc |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,8 @@ | ||
.idea | ||
.vs | ||
.vscode | ||
benchmarks | ||
build | ||
coverage | ||
doc | ||
example | ||
obj | ||
test | ||
typings | ||
.bithoundrc | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.jshintrc | ||
.travis.yml | ||
gulpfile.js | ||
Iridium.njsproj | ||
Iridium.sln | ||
Iridium.sublime-* | ||
tslint.json | ||
* | ||
!dist/** | ||
!package.json | ||
!LICENSE | ||
!CHANGELOG.md | ||
!CONTRIBUTING.md | ||
!README.md | ||
!tsconfig.json |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.