Skip to content

Commit

Permalink
chore: start 3.x LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jun 22, 2024
1 parent d7a9474 commit b414140
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 90 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI
name: CI for 3.x

on:
push:
branches: [ master ]
branches: [ 3.x ]
pull_request:
branches: [ master ]
branches: [ 3.x ]

jobs:
Job:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release
name: Release for 3.x

on:
push:
branches: [ master ]
branches: [ 3.x ]

jobs:
release:
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# urllib
# urllib@3

[![NPM version][npm-image]][npm-url]
[![Node.js CI](https://github.com/node-modules/urllib/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/urllib/actions/workflows/nodejs.yml)
[![CI for 3.x](https://github.com/node-modules/urllib/actions/workflows/nodejs-3.x.yml/badge.svg?branch=3.x)](https://github.com/node-modules/urllib/actions/workflows/nodejs-3.x.yml)
[![Test coverage][codecov-image]][codecov-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/urllib.svg?style=flat-square
[npm-url]: https://npmjs.org/package/urllib
[codecov-image]: https://codecov.io/gh/node-modules/urllib/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/node-modules/urllib
[npm-image]: https://img.shields.io/npm/v/urllib/release-3.x.svg?style=flat-square
[npm-url]: https://npmjs.org/package/urllib/v/release-3.x
[codecov-image]: https://codecov.io/gh/node-modules/urllib/branch/3.x/graph/badge.svg
[codecov-url]: https://app.codecov.io/gh/node-modules/urllib/tree/3.x
[snyk-image]: https://snyk.io/test/npm/urllib/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/urllib
[download-image]: https://img.shields.io/npm/dm/urllib.svg?style=flat-square
[download-url]: https://npmjs.org/package/urllib
[download-url]: https://npmjs.org/package/urllib/v/release-3.x

Request HTTP URLs in a complex world — basic
and digest authentication, redirections, timeout and more.

## Install

```bash
npm install urllib
npm install urllib@3
```

## Usage
Expand Down Expand Up @@ -283,6 +283,9 @@ Fork [undici benchmarks script](https://github.com/fengmk2/undici/blob/urllib-be
| undici - stream | 45 | 12523.45 req/sec | ± 2.97 % | + 754.61 % |
| undici - dispatch | 51 | 12970.18 req/sec | ± 3.15 % | + 785.10 % |

## License

[MIT](LICENSE)

<!-- GITCONTRIBUTOR_START -->

Expand All @@ -301,7 +304,3 @@ Fork [undici benchmarks script](https://github.com/fengmk2/undici/blob/urllib-be
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Mon Dec 04 2023 00:13:39 GMT+0800`.

<!-- GITCONTRIBUTOR_END -->

## License

[MIT](LICENSE)
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "urllib",
"version": "3.25.1",
"publishConfig": {
"tag": "latest"
"access": "public"
},
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Base undici fetch API.",
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, timeout and more. Base undici API.",
"keywords": [
"urllib",
"http",
Expand Down Expand Up @@ -40,7 +40,7 @@
"test-keepalive": "cross-env TEST_KEEPALIVE_COUNT=50 vitest run --test-timeout 180000 keep-alive-header.test.ts",
"cov": "vitest run --coverage",
"preci": "node scripts/pre_test.js",
"ci": "npm run lint && npm run cov && node scripts/build_test.js",
"ci": "npm run lint && npm run cov && node scripts/build_test.js && attw --pack",
"contributor": "git-contributor",
"clean": "rm -rf dist",
"prepublishOnly": "npm run build"
Expand All @@ -59,6 +59,7 @@
"ylru": "^1.3.2"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@tsconfig/node18": "^18.2.1",
"@tsconfig/strictest": "^2.0.2",
"@types/busboy": "^1.5.0",
Expand Down

0 comments on commit b414140

Please sign in to comment.