Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/httpxy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.5
Choose a base ref
...
head repository: unjs/httpxy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.6
Choose a head ref

Commits on Sep 8, 2023

  1. chore: update deps

    pi0 committed Sep 8, 2023
    Copy the full SHA
    2888089 View commit details
  2. chore(release): v0.1.5

    pi0 committed Sep 8, 2023
    Copy the full SHA
    8532771 View commit details

Commits on Sep 16, 2023

  1. Copy the full SHA
    413574f View commit details

Commits on Sep 19, 2023

  1. Copy the full SHA
    17fff9a View commit details

Commits on Sep 28, 2023

  1. Copy the full SHA
    4896b3b View commit details

Commits on Oct 9, 2023

  1. Copy the full SHA
    1f62fff View commit details

Commits on Nov 14, 2023

  1. Copy the full SHA
    4644fc3 View commit details

Commits on Nov 15, 2023

  1. Copy the full SHA
    f601e7e View commit details

Commits on Nov 23, 2023

  1. Copy the full SHA
    91c35a4 View commit details

Commits on Nov 25, 2023

  1. Copy the full SHA
    9f4c70d View commit details

Commits on Dec 6, 2023

  1. Copy the full SHA
    9ac0e82 View commit details

Commits on Dec 19, 2023

  1. Copy the full SHA
    0ff6f70 View commit details

Commits on Dec 30, 2023

  1. Copy the full SHA
    125cd75 View commit details

Commits on Jan 1, 2024

  1. Copy the full SHA
    6003bb6 View commit details

Commits on Jan 9, 2024

  1. Copy the full SHA
    bab7aae View commit details

Commits on Jan 19, 2024

  1. Copy the full SHA
    238f0ea View commit details

Commits on Jan 21, 2024

  1. Copy the full SHA
    b4941de View commit details

Commits on Jan 28, 2024

  1. Copy the full SHA
    88f3f38 View commit details

Commits on Feb 2, 2024

  1. Copy the full SHA
    65cf468 View commit details

Commits on Feb 27, 2024

  1. Copy the full SHA
    afa0285 View commit details

Commits on Mar 8, 2024

  1. Copy the full SHA
    645a453 View commit details

Commits on Mar 17, 2024

  1. Copy the full SHA
    4bf3685 View commit details

Commits on Mar 21, 2024

  1. Copy the full SHA
    4e738f0 View commit details

Commits on Mar 29, 2024

  1. Copy the full SHA
    03fdaf4 View commit details

Commits on Apr 6, 2024

  1. Copy the full SHA
    40c9cf2 View commit details

Commits on Apr 15, 2024

  1. Copy the full SHA
    aaeeaf8 View commit details

Commits on Jun 28, 2024

  1. Copy the full SHA
    5319da3 View commit details

Commits on Jul 3, 2024

  1. Copy the full SHA
    07778fb View commit details

Commits on Jul 26, 2024

  1. Copy the full SHA
    eb663da View commit details

Commits on Jan 7, 2025

  1. chore: update repo

    pi0 committed Jan 7, 2025
    Copy the full SHA
    64f7465 View commit details
  2. chore: update ci

    pi0 committed Jan 7, 2025
    Copy the full SHA
    b0f08de View commit details

Commits on Jan 14, 2025

  1. chore(deps): update all non-major dependencies (#53)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 14, 2025
    Copy the full SHA
    9afdd2d View commit details
  2. chore(deps): update autofix-ci/action digest to 551dded (#67)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 14, 2025
    Copy the full SHA
    eb26eeb View commit details
  3. Copy the full SHA
    45bc423 View commit details
  4. Copy the full SHA
    0b25653 View commit details
  5. docs: improve example (#16)

    peterroe authored Jan 14, 2025
    Copy the full SHA
    985e4a4 View commit details
  6. chore(release): v0.1.6

    pi0 committed Jan 14, 2025
    Copy the full SHA
    0a09b67 View commit details
Showing with 3,959 additions and 3,514 deletions.
  1. +0 −3 .eslintignore
  2. +0 −7 .eslintrc
  3. +5 −6 .github/workflows/autofix.yml
  4. +5 −3 .github/workflows/ci.yml
  5. +0 −1 .gitignore
  6. +43 −0 CHANGELOG.md
  7. +3 −3 README.md
  8. +10 −0 eslint.config.mjs
  9. +16 −16 package.json
  10. +3,830 −3,468 pnpm-lock.yaml
  11. +47 −5 src/_utils.ts
  12. +0 −2 src/types.ts
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintrc

This file was deleted.

11 changes: 5 additions & 6 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -14,13 +14,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- name: Fix lint issues
run: pnpm run lint:fix
- uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9
- run: pnpm lint:fix
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
with:
commit-message: "chore: apply automated lint fixes"
commit-message: "chore: apply automated updates"
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -14,12 +14,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
- run: pnpm build
- run: pnpm vitest --coverage
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -6,5 +6,4 @@ types
.DS_Store
.eslintcache
*.log*
*.conf*
*.env*
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,49 @@
# Changelog


## v0.1.6

[compare changes](https://github.com/unjs/httpxy/compare/v0.1.5...v0.1.6)

### 🩹 Fixes

- Omit outgoing port when not required ([#65](https://github.com/unjs/httpxy/pull/65))

### 📖 Documentation

- Remove unsupported `followRedirects` option ([#66](https://github.com/unjs/httpxy/pull/66))
- Improve example ([#16](https://github.com/unjs/httpxy/pull/16))

### 🏡 Chore

- Fix typo in readme ([#36](https://github.com/unjs/httpxy/pull/36))
- Update repo ([64f7465](https://github.com/unjs/httpxy/commit/64f7465))
- Update ci ([b0f08de](https://github.com/unjs/httpxy/commit/b0f08de))

### ❤️ Contributors

- Lsh ([@peterroe](http://github.com/peterroe))
- Kricsleo ([@kricsleo](http://github.com/kricsleo))
- Pooya Parsa ([@pi0](http://github.com/pi0))
- Mohammd Siddiqui <masiddiqui91@gmail.com>

## v0.1.5

[compare changes](https://github.com/unjs/httpxy/compare/v0.1.4...v0.1.5)

### 🩹 Fixes

- Handle client `close` event ([#8](https://github.com/unjs/httpxy/pull/8))

### 🏡 Chore

- Update deps ([2888089](https://github.com/unjs/httpxy/commit/2888089))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))
- David Tai ([@didavid61202](http://github.com/didavid61202))

## v0.1.4

[compare changes](https://github.com/unjs/httpxy/compare/v0.1.2...v0.1.4)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -33,8 +33,8 @@ const proxy = createProxyServer({});

const server = createServer(async (req, res) => {
try {
await httpProxy.web(req, res, {
target: main.url,
await proxy.web(req, res, {
target: address /* address of your proxy server here */,
});
} catch (error) {
console.error(error);
@@ -48,7 +48,7 @@ server.listen(3000, () => {
});
```

Checkout [http-party/node-http-proxy](https://github.com/http-party/node-http-proxy) for more options and examples.
Checkout [http-party/node-http-proxy](https://github.com/http-party/node-http-proxy) for more options and examples (note: `followRedirects` is not supported).

## Development

10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unjs from "eslint-config-unjs";

// https://github.com/unjs/eslint-config
export default unjs({
ignores: [],
rules: {
"unicorn/consistent-function-scoping": 0,
"@typescript-eslint/no-unused-vars": 0
},
});
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "httpxy",
"version": "0.1.4",
"version": "0.1.6",
"description": "A full-featured HTTP proxy for Node.js.",
"repository": "unjs/httpxy",
"license": "MIT",
@@ -23,26 +23,26 @@
"build": "unbuild",
"dev": "vitest",
"play": "jiti ./playground",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"lint": "eslint --cache . && prettier -c src test",
"lint:fix": "eslint --cache . --fix && prettier -c src test -w",
"prepack": "pnpm run build",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test:types": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^20.5.9",
"@vitest/coverage-v8": "^0.34.3",
"changelogen": "^0.5.5",
"eslint": "^8.48.0",
"eslint-config-unjs": "^0.2.1",
"jiti": "^1.19.3",
"listhen": "^1.4.4",
"ofetch": "^1.3.3",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vitest": "^0.34.3"
"@types/node": "^22.10.6",
"@vitest/coverage-v8": "^2.1.8",
"changelogen": "^0.5.7",
"eslint": "^9.18.0",
"eslint-config-unjs": "^0.4.2",
"jiti": "^2.4.2",
"listhen": "^1.9.0",
"ofetch": "^1.4.1",
"prettier": "^3.4.2",
"typescript": "^5.7.3",
"unbuild": "^3.3.1",
"vitest": "^2.1.8"
},
"packageManager": "pnpm@8.7.4"
"packageManager": "pnpm@9.15.4"
}
Loading