Skip to content

Commit

Permalink
Fix context.next() to throw Route not found instead of TypeError (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy committed Jul 19, 2019
1 parent 10527c9 commit 7cd21a1
Show file tree
Hide file tree
Showing 21 changed files with 123 additions and 44 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
*.json text eol=lf
*.md text eol=lf
*.svg text eol=lf
*.ts text eol=lf
*.txt text eol=lf
*.yml text eol=lf
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ yarn-error.log*

# Editors and IDEs
.idea/
.vscode/

# Misc
.DS_Store
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// https://github.com/microsoft/vscode-recipes/tree/master/debugging-jest-tests#debugging-all-tests
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
},
// https://github.com/microsoft/vscode-recipes/tree/master/debugging-jest-tests#debugging-the-current-test
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${fileBasenameNoExtension}", "--config", "jest.config.js"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
]
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Fix `context.next()` to throw `Route not found` instead of `TypeError` ([#169](https://github.com/kriasoft/universal-router/pull/169))

## [8.2.0] - 2019-05-10

- Improve TypeScript typings ([#167](https://github.com/kriasoft/universal-router/pull/167))
Expand Down
6 changes: 3 additions & 3 deletions dist/universal-router-sync.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/universal-router-sync.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/universal-router-sync.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/universal-router-sync.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/universal-router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/universal-router.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 7cd21a1

Please sign in to comment.