diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92092074..9f46f5c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,7 +92,7 @@ jobs: - name: standard maturin_args: "--find-interpreter" - name: free-threaded - maturin_args: "--interpreter 3.13t 3.14t" + maturin_args: "--interpreter 3.14t" platform: - runner: ubuntu-latest target: x86_64 @@ -161,7 +161,7 @@ jobs: - name: standard maturin_args: "--find-interpreter" - name: free-threaded - maturin_args: "--interpreter 3.13t 3.14t" + maturin_args: "--interpreter 3.14t" platform: - runner: ubuntu-22.04 target: x86_64-unknown-linux-musl @@ -204,7 +204,7 @@ jobs: maturin_args: "" cargo_args: "" - name: free-threaded - maturin_args: "--interpreter 3.13t 3.14t" + maturin_args: "--interpreter 3.14t" cargo_args: "--no-default-features" platform: - target: x64 @@ -248,7 +248,7 @@ jobs: - name: standard maturin_args: "--find-interpreter" - name: free-threaded - maturin_args: "--interpreter 3.13t 3.14t" + maturin_args: "--interpreter 3.14t" platform: - runner: macos-latest target: x86_64 diff --git a/Cargo.toml b/Cargo.toml index 8048b419..61d3fddd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,14 +30,14 @@ abi3-py314 = ["pyo3/abi3-py314"] [dependencies] tokio = "1.52.2" tokio-util = "0.7.18" -pyo3 = { version = "0.28.3", features = [ +pyo3 = { version = "0.29.0", features = [ "indexmap", "multiple-pymethods", "extension-module", "generate-import-lib", "experimental-async", ] } -pyo3-async-runtimes = { version = "0.28.0", features = [ +pyo3-async-runtimes = { version = "0.29.0", features = [ "tokio-runtime", "unstable-streams", ] } @@ -47,11 +47,11 @@ serde = { version = "1.0.228", features = ["derive"] } serde_json = "1" serde_urlencoded = "0.7.1" indexmap = { version = "2.13.0", features = ["serde"] } -bytes = "1.11.1" -arc-swap = "1.9.0" -http = "1.4.0" +bytes = "1.12.1" +arc-swap = "1.9.2" +http = "1.4.2" http-body-util = "0.1.3" -wreq = { version = "6.0.0-rc.29", features = [ +wreq = { version = "6.0.0-rc", features = [ "query", "form", "json", @@ -67,13 +67,13 @@ wreq = { version = "6.0.0-rc.29", features = [ "ws", "parking_lot", ] } -wreq-util = { version = "3.0.0-rc.12", features = ["emulation-compression"] } +wreq-util = { version = "3.0.0-rc", features = ["emulation-compression"] } hickory-resolver = "0.25.2" cookie = "0.18" mimalloc = { version = "0.1.43", default-features = false, features = [ "local_dynamic_tls", ], optional = true } -tikv-jemallocator = { version = "0.6.1", default-features = false, features = [ +tikv-jemallocator = { version = "0.7.0", default-features = false, features = [ "disable_initial_exec_tls", ], optional = true } diff --git a/docs/source/getting-started/introduction.md b/docs/source/getting-started/introduction.md index a0e95cbf..0000dad8 100644 --- a/docs/source/getting-started/introduction.md +++ b/docs/source/getting-started/introduction.md @@ -74,31 +74,31 @@ Due to the complexity of **TLS** encryption and the widespread adoption of **HTT --- - `Chrome100` `Chrome101` `Chrome104` `Chrome105` `Chrome106` `Chrome107` `Chrome108` `Chrome109` `Chrome110` `Chrome114` `Chrome116` `Chrome117` `Chrome118` `Chrome119` `Chrome120` `Chrome123` `Chrome124` `Chrome126` `Chrome127` `Chrome128` `Chrome129` `Chrome130` `Chrome131` `Chrome132` `Chrome133` `Chrome134` `Chrome135` `Chrome136` `Chrome137` `Chrome138` `Chrome139` `Chrome140` `Chrome141` `Chrome142` `Chrome143` `Chrome144` `Chrome145` `Chrome146` `Chrome147` + `Chrome100` `Chrome101` `Chrome104` `Chrome105` `Chrome106` `Chrome107` `Chrome108` `Chrome109` `Chrome110` `Chrome114` `Chrome116` `Chrome117` `Chrome118` `Chrome119` `Chrome120` `Chrome123` `Chrome124` `Chrome126` `Chrome127` `Chrome128` `Chrome129` `Chrome130` `Chrome131` `Chrome132` `Chrome133` `Chrome134` `Chrome135` `Chrome136` `Chrome137` `Chrome138` `Chrome139` `Chrome140` `Chrome141` `Chrome142` `Chrome143` `Chrome144` `Chrome145` `Chrome146` `Chrome147` `Chrome148` `Chrome149` - :fontawesome-brands-edge: **Edge** --- - `Edge101` `Edge122` `Edge127` `Edge131` `Edge134` `Edge135` `Edge136` `Edge137` `Edge138` `Edge139` `Edge140` `Edge141` `Edge142` `Edge143` `Edge144` `Edge145`, `Edge146` `Edge147` + `Edge101` `Edge122` `Edge127` `Edge131` `Edge134` `Edge135` `Edge136` `Edge137` `Edge138` `Edge139` `Edge140` `Edge141` `Edge142` `Edge143` `Edge144` `Edge145` `Edge146` `Edge147` `Edge148` - :fontawesome-brands-firefox: **Firefox** --- - `Firefox109` `Firefox117` `Firefox128` `Firefox133` `Firefox135` `FirefoxPrivate135` `FirefoxAndroid135` `Firefox136` `FirefoxPrivate136` `Firefox139` `Firefox142` `Firefox143` `Firefox144` `Firefox145` `Firefox146` `Firefox147` `Firefox148` `Firefox149` + `Firefox109` `Firefox117` `Firefox128` `Firefox133` `Firefox135` `FirefoxPrivate135` `FirefoxAndroid135` `Firefox136` `FirefoxPrivate136` `Firefox139` `Firefox142` `Firefox143` `Firefox144` `Firefox145` `Firefox146` `Firefox147` `Firefox148` `Firefox149` `Firefox150` `Firefox151` - :fontawesome-brands-safari: **Safari** --- - `SafariIos17_2` `SafariIos17_4_1` `SafariIos16_5` `Safari15_3` `Safari15_5` `Safari15_6_1` `Safari16` `Safari16_5` `Safari17_0` `Safari17_2_1` `Safari17_4_1` `Safari17_5` `Safari18` `SafariIPad18` `Safari18_2` `Safari18_3` `Safari18_3_1` `SafariIos18_1_1` `Safari18_5` `Safari26` `Safari26_1` `Safari26_2` `SafariIos26` `SafariIos26_2` `SafariIPad26` `SafariIpad26_2` + `SafariIos17_2` `SafariIos17_4_1` `SafariIos16_5` `Safari15_3` `Safari15_5` `Safari15_6_1` `Safari16` `Safari16_5` `Safari17_0` `Safari17_2_1` `Safari17_4_1` `Safari17_5` `Safari17_6` `Safari18` `SafariIPad18` `Safari18_2` `Safari18_3` `Safari18_3_1` `SafariIos18_1_1` `Safari18_5` `Safari26` `Safari26_1` `Safari26_2` `Safari26_3` `Safari26_4` `SafariIos26` `SafariIos26_2` `SafariIPad26` `SafariIpad26_2` - :fontawesome-brands-opera: **Opera** --- - `Opera116` `Opera117` `Opera118` `Opera119` `Opera120` `Opera121` `Opera122` `Opera123` `Opera124` `Opera125` `Opera126` `Opera127` `Opera128` `Opera129` `Opera130` + `Opera116` `Opera117` `Opera118` `Opera119` `Opera120` `Opera121` `Opera122` `Opera123` `Opera124` `Opera125` `Opera126` `Opera127` `Opera128` `Opera129` `Opera130` `Opera131` - :material-web: **OkHttp** @@ -122,4 +122,4 @@ Unless you explicitly state otherwise, any contribution intentionally submitted [requests]: https://github.com/psf/requests [httpx]: https://github.com/encode/httpx [Buffer]: https://docs.python.org/3/c-api/buffer.html -[GIL]: https://docs.python.org/3/c-api/init.html#thread-and-gil-management \ No newline at end of file +[GIL]: https://docs.python.org/3/c-api/init.html#thread-and-gil-management diff --git a/python/wreq/emulation.py b/python/wreq/emulation.py index 6a50dada..eaf3ef8f 100644 --- a/python/wreq/emulation.py +++ b/python/wreq/emulation.py @@ -64,6 +64,8 @@ class Profile(Enum): Chrome145 = auto() Chrome146 = auto() Chrome147 = auto() + Chrome148 = auto() + Chrome149 = auto() # Microsoft Edge versions Edge101 = auto() @@ -84,6 +86,7 @@ class Profile(Enum): Edge145 = auto() Edge146 = auto() Edge147 = auto() + Edge148 = auto() # Firefox versions Firefox109 = auto() @@ -104,6 +107,8 @@ class Profile(Enum): Firefox147 = auto() Firefox148 = auto() Firefox149 = auto() + Firefox150 = auto() + Firefox151 = auto() # Safari versions SafariIos17_2 = auto() @@ -118,6 +123,7 @@ class Profile(Enum): Safari17_2_1 = auto() Safari17_4_1 = auto() Safari17_5 = auto() + Safari17_6 = auto() Safari18 = auto() SafariIPad18 = auto() Safari18_2 = auto() @@ -128,6 +134,8 @@ class Profile(Enum): Safari26 = auto() Safari26_1 = auto() Safari26_2 = auto() + Safari26_3 = auto() + Safari26_4 = auto() SafariIos26 = auto() SafariIos26_2 = auto() SafariIPad26 = auto() @@ -159,6 +167,7 @@ class Profile(Enum): Opera128 = auto() Opera129 = auto() Opera130 = auto() + Opera131 = auto() @final @@ -228,6 +237,8 @@ class Emulation: Chrome145: ClassVar[Profile] = Profile.Chrome145 Chrome146: ClassVar[Profile] = Profile.Chrome146 Chrome147: ClassVar[Profile] = Profile.Chrome147 + Chrome148: ClassVar[Profile] = Profile.Chrome148 + Chrome149: ClassVar[Profile] = Profile.Chrome149 # Microsoft Edge versions Edge101: ClassVar[Profile] = Profile.Edge101 @@ -248,6 +259,7 @@ class Emulation: Edge145: ClassVar[Profile] = Profile.Edge145 Edge146: ClassVar[Profile] = Profile.Edge146 Edge147: ClassVar[Profile] = Profile.Edge147 + Edge148: ClassVar[Profile] = Profile.Edge148 # Firefox versions Firefox109: ClassVar[Profile] = Profile.Firefox109 @@ -268,6 +280,8 @@ class Emulation: Firefox147: ClassVar[Profile] = Profile.Firefox147 Firefox148: ClassVar[Profile] = Profile.Firefox148 Firefox149: ClassVar[Profile] = Profile.Firefox149 + Firefox150: ClassVar[Profile] = Profile.Firefox150 + Firefox151: ClassVar[Profile] = Profile.Firefox151 # Safari versions SafariIos17_2: ClassVar[Profile] = Profile.SafariIos17_2 @@ -282,6 +296,7 @@ class Emulation: Safari17_2_1: ClassVar[Profile] = Profile.Safari17_2_1 Safari17_4_1: ClassVar[Profile] = Profile.Safari17_4_1 Safari17_5: ClassVar[Profile] = Profile.Safari17_5 + Safari17_6: ClassVar[Profile] = Profile.Safari17_6 Safari18: ClassVar[Profile] = Profile.Safari18 SafariIPad18: ClassVar[Profile] = Profile.SafariIPad18 Safari18_2: ClassVar[Profile] = Profile.Safari18_2 @@ -292,6 +307,8 @@ class Emulation: Safari26: ClassVar[Profile] = Profile.Safari26 Safari26_1: ClassVar[Profile] = Profile.Safari26_1 Safari26_2: ClassVar[Profile] = Profile.Safari26_2 + Safari26_3: ClassVar[Profile] = Profile.Safari26_3 + Safari26_4: ClassVar[Profile] = Profile.Safari26_4 SafariIos26: ClassVar[Profile] = Profile.SafariIos26 SafariIos26_2: ClassVar[Profile] = Profile.SafariIos26_2 SafariIPad26: ClassVar[Profile] = Profile.SafariIPad26 @@ -323,6 +340,7 @@ class Emulation: Opera128: ClassVar[Profile] = Profile.Opera128 Opera129: ClassVar[Profile] = Profile.Opera129 Opera130: ClassVar[Profile] = Profile.Opera130 + Opera131: ClassVar[Profile] = Profile.Opera131 def __init__( self, diff --git a/src/emulate.rs b/src/emulate.rs index e8670b3d..bb1e4d03 100644 --- a/src/emulate.rs +++ b/src/emulate.rs @@ -48,6 +48,8 @@ define_enum!( Chrome145, Chrome146, Chrome147, + Chrome148, + Chrome149, Edge101, Edge122, @@ -67,6 +69,7 @@ define_enum!( Edge145, Edge146, Edge147, + Edge148, Firefox109, Firefox117, @@ -86,6 +89,8 @@ define_enum!( Firefox147, Firefox148, Firefox149, + Firefox150, + Firefox151, SafariIos17_2, SafariIos17_4_1, @@ -99,6 +104,7 @@ define_enum!( Safari17_2_1, Safari17_4_1, Safari17_5, + Safari17_6, Safari18, SafariIPad18, Safari18_2, @@ -109,6 +115,8 @@ define_enum!( Safari26, Safari26_1, Safari26_2, + Safari26_3, + Safari26_4, SafariIos26, SafariIos26_2, SafariIPad26, @@ -138,6 +146,7 @@ define_enum!( Opera128, Opera129, Opera130, + Opera131, ); define_enum!(