Skip to content

Commit b2ad49a

Browse files
Merge pull request #26 from expressjs/master
Create a new pull request by comparing changes across two branches
2 parents 9b45f1b + 6233671 commit b2ad49a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+604
-594
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: 'lts/*'
33-
persist-credentials: false
3433

3534
- name: Install dependencies
3635
run: npm install --ignore-scripts --only=dev

.github/workflows/scorecard.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: Scorecard supply-chain security
6+
on:
7+
# For Branch-Protection check. Only the default branch is supported. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9+
branch_protection_rule:
10+
# To guarantee Maintained check is occasionally updated. See
11+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12+
schedule:
13+
- cron: '16 21 * * 1'
14+
push:
15+
branches: [ "master" ]
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
analysis:
22+
name: Scorecard analysis
23+
runs-on: ubuntu-latest
24+
permissions:
25+
# Needed to upload the results to code-scanning dashboard.
26+
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write
29+
# Uncomment the permissions below if installing in a private repository.
30+
# contents: read
31+
# actions: read
32+
33+
steps:
34+
- name: "Checkout code"
35+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
36+
with:
37+
persist-credentials: false
38+
39+
- name: "Run analysis"
40+
uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
41+
with:
42+
results_file: results.sarif
43+
results_format: sarif
44+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
45+
# - you want to enable the Branch-Protection check on a *public* repository, or
46+
# - you are installing Scorecard on a *private* repository
47+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
48+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
49+
50+
# Public repositories:
51+
# - Publish results to OpenSSF REST API for easy access by consumers
52+
# - Allows the repository to include the Scorecard badge.
53+
# - See https://github.com/ossf/scorecard-action#publishing-results.
54+
# For private repositories:
55+
# - `publish_results` will always be set to `false`, regardless
56+
# of the value entered here.
57+
publish_results: true
58+
59+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
60+
# format to the repository Actions tab.
61+
- name: "Upload artifact"
62+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
63+
with:
64+
name: SARIF file
65+
path: results.sarif
66+
retention-days: 5
67+
68+
# Upload the results to GitHub's code scanning dashboard.
69+
- name: "Upload to code-scanning"
70+
uses: github/codeql-action/upload-sarif@2f93e4319b2f04a2efc38fa7f78bd681bc3f7b2f # v2.23.2
71+
with:
72+
sarif_file: results.sarif

History.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
unreleased
22
========================
33

4+
* Remove `utils-merge` dependency - use spread syntax instead
45
* Remove `Object.setPrototypeOf` polyfill
6+
* cleanup: remove AsyncLocalStorage check from tests
7+
* cleanup: remove unnecessary require for global Buffer
8+
* perf: use loop for acceptParams
9+
* Replace `methods` dependency with standard library
10+
* refactor: prefix built-in node module imports
11+
* Remove unused `depd` dependency
512

613
5.0.1 / 2024-10-08
714
==========

Readme.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
[![NPM Version][npm-version-image]][npm-url]
23-
[![NPM Install Size][npm-install-size-image]][npm-install-size-url]
2423
[![NPM Downloads][npm-downloads-image]][npm-downloads-url]
2524
[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer]
2625

@@ -210,7 +209,9 @@ The original author of Express is [TJ Holowaychuk](https://github.com/tj)
210209
* [dakshkhetan](https://github.com/dakshkhetan) - **Daksh Khetan** (he/him)
211210
* [lucasraziel](https://github.com/lucasraziel) - **Lucas Soares Do Rego**
212211
* [IamLizu](https://github.com/IamLizu) - **S M Mahmudul Hasan** (he/him)
212+
* [Phillip9587](https://github.com/Phillip9587) - **Phillip Barta**
213213
* [Sushmeet](https://github.com/Sushmeet) - **Sushmeet Sunger**
214+
* [rxmarbles](https://github.com/rxmarbles) **Rick Markins** (He/him)
214215

215216
<details>
216217
<summary>Triagers emeriti members</summary>
@@ -256,8 +257,6 @@ The original author of Express is [TJ Holowaychuk](https://github.com/tj)
256257
[github-actions-ci-url]: https://github.com/expressjs/express/actions/workflows/ci.yml
257258
[npm-downloads-image]: https://badgen.net/npm/dm/express
258259
[npm-downloads-url]: https://npmcharts.com/compare/express?minimal=true
259-
[npm-install-size-image]: https://badgen.net/packagephobia/install/express
260-
[npm-install-size-url]: https://packagephobia.com/result?p=express
261260
[npm-url]: https://npmjs.org/package/express
262261
[npm-version-image]: https://badgen.net/npm/v/express
263262
[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/expressjs/express/badge

Release-Process.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ $ git merge --ff-only <proposal-branch>
129129
<release-branch> - see "Release branch" of "Branches" above.
130130
<proposal-branch> - see "Proposal branch" of "Non-patch flow" above.
131131

132-
**NOTE:** You may need to rebase the proposal branch to allow a fast-forward
133-
merge. Using a fast-forward merge keeps the history clean as it does
134-
not introduce merge commits.
132+
> [!NOTE]
133+
> You may need to rebase the proposal branch to allow a fast-forward
134+
> merge. Using a fast-forward merge keeps the history clean as it does
135+
> not introduce merge commits.
135136
136137
### Step 3. Update the History.md and package.json to the new version number
137138

@@ -189,11 +190,13 @@ $ npm login <npm-username>
189190
$ npm publish
190191
```
191192

192-
**NOTE:** The version number to publish will be picked up automatically from
193-
package.json.
193+
> [!NOTE]
194+
> The version number to publish will be picked up automatically from
195+
> package.json.
194196
195197
### Step 7. Update documentation website
196198

197-
The documentation website https://expressjs.com/ documents the current release version in various places. For a new release:
198-
1. Change the value of `current_version` in https://github.com/expressjs/expressjs.com/blob/gh-pages/_data/express.yml to match the latest version number.
199-
2. Add a new section to the change log. For example, for a 4.x release, https://github.com/expressjs/expressjs.com/blob/gh-pages/en/changelog/4x.md,
199+
The documentation website https://expressjs.com/ documents the current release version in various places. To update these, follow these steps:
200+
201+
1. Manually run the [`Update External Docs` workflow](https://github.com/expressjs/expressjs.com/actions/workflows/update-external-docs.yml) in expressjs.com repository.
202+
2. Add a new section to the [changelog](https://github.com/expressjs/expressjs.com/blob/gh-pages/en/changelog/index.md) in the expressjs.com website.

Triager-Guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ If you have questions feel free to reach out to any of the TC members.
6868
- For recurring issues, it is helpful to create functional examples to demonstrate (publish as gists or a repo)
6969
- Review and identify the maintainers. If necessary, at-mention one or more of them if you are unsure what to do
7070
- Make sure all your interactions are professional, welcoming, and respectful to the parties involved.
71+
- When an issue refers to security concerns, responsibility is delegated to the repository captain or the security group in any public communication.
72+
- If an issue has been open for a long time, the person in charge should be contacted internally through the private Slack chat.

examples/auth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
var express = require('../..');
88
var hash = require('pbkdf2-password')()
9-
var path = require('path');
9+
var path = require('node:path');
1010
var session = require('express-session');
1111

1212
var app = module.exports = express();

examples/auth/views/head.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
font: 13px Helvetica, Arial, sans-serif;
1111
}
1212
.error {
13-
color: red
13+
color: red;
1414
}
1515
.success {
1616
color: green;

examples/downloads/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
var express = require('../../');
8-
var path = require('path');
8+
var path = require('node:path');
99

1010
var app = module.exports = express();
1111

examples/ejs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
var express = require('../../');
8-
var path = require('path');
8+
var path = require('node:path');
99

1010
var app = module.exports = express();
1111

0 commit comments

Comments
 (0)