Skip to content

Releases: Kaciras/pac-maker

v3.2.0

25 Jun 22:57
ef2f46a
Compare
Choose a tag to compare
  • make the proxy parameter optional in HostBlockVerifier constructor.
  • change return type of HostBlockVerifier.verifyAll to HostsBlockInfo.

v3.1.0

30 May 04:54
d6215a2
Compare
Choose a tag to compare

Introduce HostBlockVerifier for test if any hostname is blocked by your ISP.

v3.0.0

10 Feb 09:11
284bbbe
Compare
Choose a tag to compare

Breaking changes

  • Default config changed:

    • direct property is renamed to fallback.
    • sources now is empty.
    • path changed to proxy.pac.
  • PAC helper function dnsResolve now use dns.lookup instead of dns.resolve.

  • Prefer synchronized fs functions.

New features

  • Add support for pattern *.example.com to HostnameFileSource, that matches subdomains of example.com but not itself.
  • use fetch-socks for socks proxy.
  • Add --host=<hostname passed to FindProxyForURL> parameter for the bench command.
  • Add support for inspect Safari history for analyze command.
  • Rules which are included by others will be removed in buildPAC.

Fixes

  • fix inspecting of Edge history when the default profile is deleted.

v2.2.0

22 Nov 08:18
62ee174
Compare
Choose a tag to compare

New Feature

  • Add strict parameter to parseProxies, false to ignore invalid block, just like browser behavior.
  • Allow specific a timeout for loadPAC.
  • Add support for pass TLS options to HTTP tunnel proxy.

Fixes

  • Allow FindProxyForURL return null.
  • Fix missing error handing on first dispatching.
  • Fix serve command does not watch source changes.
  • Exclude ts source files in npm package.

v2.1.0

25 Oct 15:07
d450cf9
Compare
Choose a tag to compare

New Features

  • New dnsmasq source contains China mainland hostnames.
  • Introduce dist/whitelist.pac that route all but China requests to SOCKS5 localhost:2080. The proxy.pac is renamed to blacklist.pac
  • New command bench used to benchmark a PAC file.

v2.0.0

25 Oct 14:56
3ffd6b4
Compare
Choose a tag to compare

New Features

add support for proxy Node 18+ builtin fetch with PAC, example:

import { readFileSync } from "fs";
import { PACDispatcher } from "pac-maker";

// Only needed if your Node < 18.1.0
// import { fetch } from "undici";

const pac = readFileSync("proxy.pac", "utf8");
const dispatcher = new PACDispatcher(pac);

const response = await fetch("https://example.com", { dispatcher });

Also add dispatcher parameter to builtin hostname sources which need fetch data from network.

import { readFileSync } from "fs";
import { gfwlist, PACDispatcher } from "pac-maker";

const pac = readFileSync("proxy.pac", "utf8");
const dispatcher = new PACDispatcher(pac);

const source = gfwlist({ dispatcher });

v1.2.0

08 Dec 02:32
5c4565f
Compare
Choose a tag to compare
  • update dependencies.
  • CLI: check config file exists if it's specified in arguments.
  • check rule conflict in buildPAC.
  • rename "direct" to "fallback" in the template file.

v1.1.0

14 Jun 10:52
920d4f0
Compare
Choose a tag to compare
  • Convert files to TypeScript.

  • use single command pac-maker.

  • add predefined functions to PAC context.

  • Create npm package.

v1.0.0

31 May 14:41
1c899ef
Compare
Choose a tag to compare

First release