Skip to content
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

Release 2.0 #60

Merged
merged 36 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9342ada
Drop support for Node.js below 0.10
dougwilson Jul 19, 2018
7cf14ea
deps: [email protected]
dougwilson Jul 19, 2018
4d786f0
build: [email protected]
dougwilson Jul 19, 2018
dff0a94
build: [email protected]
dougwilson Jul 19, 2018
f0c4c70
build: use nyc for test coverage
dougwilson Jul 19, 2018
d2bce0c
Add basic support for returned, rejected Promises
leebyron Aug 14, 2016
dbaa56e
2.0.0-alpha.1
dougwilson Jul 27, 2018
a2ba4ca
Merge tag 'v1.3.4'
dougwilson Jan 25, 2020
e0bbb53
build: [email protected]
wesleytodd Jan 5, 2020
4acf108
deps: [email protected]
wesleytodd Jan 5, 2020
e1733bd
Internalize private router.process_params method
dougwilson Mar 13, 2020
2b12ec8
Merge tag 'v1.3.5'
dougwilson Mar 25, 2020
f358983
lint: use camel case for identifiers
dougwilson Mar 25, 2020
5a43471
lint: apply standard 14 style
dougwilson Mar 26, 2020
0b5a0a6
Remove debug dependency
dougwilson Mar 30, 2020
ca507ee
2.0.0-beta.1
dougwilson Mar 30, 2020
fe99e20
Merge tag 'v1.3.6'
dougwilson Nov 16, 2021
46d05d7
docs: fix typo in history
nfantone Nov 15, 2021
83dc504
Add support for returned, rejected Promises to router.param
jonchurch Apr 19, 2020
f175698
Merge tag 'v1.3.7'
dougwilson May 7, 2022
63ae94f
build: [email protected]
dougwilson Jun 11, 2022
6c5090d
docs: fix typo in history
nfantone Nov 15, 2021
2ae1045
build: [email protected]
dougwilson Jun 11, 2022
efd112a
tests: add test for capture group regexp
dougwilson Jul 21, 2022
7ddcab5
tests: add test for unnamed capture group regexp
dougwilson Jul 21, 2022
c67be54
docs: add capture group change to history
nfantone Nov 30, 2021
17086e6
Merge branch 'master' into 2.0-v1-sync
wesleytodd Mar 16, 2024
d40e4b0
build: legacy-peer-deps in new node
wesleytodd Mar 16, 2024
4835526
lint: fix lint in ci
wesleytodd Mar 16, 2024
e14430a
2.0.0-beta.2
wesleytodd Mar 21, 2024
11dd0b9
fix(ci)!: drop support for node <18
wesleytodd Sep 1, 2024
04f8c3b
fix(ci): replace after with run-series to address flaky superagent be…
wesleytodd Sep 1, 2024
95b5cb5
fix(lint): replace broken eslint config with standard
wesleytodd Sep 1, 2024
a57f761
fix: add .git-blame-ignore-revs file for lint change
wesleytodd Sep 1, 2024
f5a99b0
fix(ci): remove legacy peer deps flag
wesleytodd Sep 1, 2024
30b42cb
feat!: path-to-regexp@^8.0.0
wesleytodd Aug 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
29a69f3cf7cb5acbdde0a9151b885d46423b0c72
148 changes: 20 additions & 128 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: ci

on:
workflow_dispatch:
push:
branches:
- master
- master
- '2.0'
paths-ignore:
- '*.md'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- '*.md'

jobs:
test:
Expand All @@ -15,126 +18,35 @@ jobs:
fail-fast: false
matrix:
name:
- Node.js 0.8
- Node.js 0.10
- Node.js 0.12
- io.js 1.x
- io.js 2.x
- io.js 3.x
- Node.js 4.x
- Node.js 5.x
- Node.js 6.x
- Node.js 7.x
- Node.js 8.x
- Node.js 9.x
- Node.js 10.x
- Node.js 11.x
- Node.js 12.x
- Node.js 13.x
- Node.js 14.x
- Node.js 15.x
- Node.js 16.x
- Node.js 17.x
- Node.js 18.x
- Node.js 19.x
- Node.js 20.x
- Node.js 21.x
- Node.js 22.x

include:
- name: Node.js 0.8
node-version: "0.8"
npm-i: [email protected] [email protected]
npm-rm: nyc

- name: Node.js 0.10
node-version: "0.10"
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 0.12
node-version: "0.12"
npm-i: [email protected] [email protected] [email protected]

- name: io.js 1.x
node-version: "1.8"
npm-i: [email protected] [email protected] [email protected]

- name: io.js 2.x
node-version: "2.5"
npm-i: [email protected] [email protected] [email protected]

- name: io.js 3.x
node-version: "3.3"
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 4.x
node-version: "4.9"
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 5.x
node-version: "5.12"
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 6.x
node-version: "6.17"
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 7.x
node-version: "7.10"
npm-i: [email protected] [email protected] [email protected]

- name: Node.js 8.x
node-version: "8.17"
npm-i: [email protected] [email protected]

- name: Node.js 9.x
node-version: "9.11"
npm-i: [email protected] [email protected]

- name: Node.js 10.x
node-version: "10.24"
npm-i: [email protected]

- name: Node.js 11.x
node-version: "11.15"
npm-i: [email protected]

- name: Node.js 12.x
node-version: "12.22"
npm-i: [email protected]

- name: Node.js 13.x
node-version: "13.14"
npm-i: [email protected]

- name: Node.js 14.x
node-version: "14.21"
- name: Node.js 18.x
node-version: "18"

- name: Node.js 15.x
node-version: "15.14"
- name: Node.js 19.x
node-version: "19"

- name: Node.js 16.x
node-version: "16.19"
- name: Node.js 20.x
node-version: "20"

- name: Node.js 17.x
node-version: "17.9"
- name: Node.js 21.x
node-version: "21"

- name: Node.js 18.x
node-version: "18.14"

- name: Node.js 19.x
node-version: "19.7"
- name: Node.js 22.x
node-version: "22"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Node.js ${{ matrix.node-version }}
shell: bash -eo pipefail -l {0}
run: |
nvm install --default ${{ matrix.node-version }}
if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
nvm install --alias=npm 0.10
nvm use ${{ matrix.node-version }}
sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
npm config set strict-ssl false
fi
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"

- name: Configure npm
Expand All @@ -145,26 +57,6 @@ jobs:
npm config set shrinkwrap false
fi

- name: Remove npm module(s) ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
if: matrix.npm-rm != ''

- name: Install npm module(s) ${{ matrix.npm-i }}
run: npm install --save-dev ${{ matrix.npm-i }}
if: matrix.npm-i != ''

- name: Setup Node.js version-specific dependencies
shell: bash
run: |
# eslint for linting
# - remove on Node.js < 12
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
grep -E '^eslint(-|$)' | \
sort -r | \
xargs -n1 npm rm --silent --save-dev
fi

- name: Install Node.js dependencies
run: npm install

Expand Down
49 changes: 49 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
unreleased
=========================

* Drop support for node <18

2.0.0-beta.2 / 2024-03-20
=========================

This incorporates all changes after 1.3.5 up to 1.3.8.

* Add support for returned, rejected Promises to `router.param`

2.0.0-beta.1 / 2020-03-29
=========================

This incorporates all changes after 1.3.3 up to 1.3.5.

* Internalize private `router.process_params` method
* Remove `debug` dependency
* deps: [email protected]
* deps: parseurl@~1.3.3
* deps: [email protected]
- Add new `?`, `*`, and `+` parameter modifiers.
- Matching group expressions are only RegExp syntax.
`(*)` is no longer valid and must be written as `(.*)`, for example.
- Named matching groups no longer available by position in `req.params`.
`/:foo(.*)` only captures as `req.params.foo` and not available as
`req.params[0]`.
- Regular expressions can only be used in a matching group.
`/\\d+` is no longer valid and must be written as `/(\\d+)`.
- Matching groups are now literal regular expressions.
`:foo` named captures can no longer be included inside a capture group.
- Special `*` path segment behavior removed.
`/foo/*/bar` will match a literal `*` as the middle segment.
* deps: [email protected]

2.0.0-alpha.1 / 2018-07-27
==========================

* Add basic support for returned, rejected Promises
- Rejected Promises from middleware functions `next(error)`
* Drop support for Node.js below 0.10
* deps: [email protected]
- Add `DEBUG_HIDE_DATE` environment variable
- Change timer to per-namespace instead of global
- Change non-TTY date format
- Remove `DEBUG_FD` environment variable support
- Support 256 namespace colors

1.3.8 / 2023-02-24
==================

Expand Down
Loading
Loading