workers-runtime-sdk 1.6.5__tar.gz → 1.6.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/CHANGELOG.md +13 -0
  2. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/PKG-INFO +1 -1
  3. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/pyproject.toml +1 -1
  4. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/asgi.py +6 -1
  5. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/uv.lock +1 -1
  6. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/.gitignore +0 -0
  7. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/AGENTS.md +0 -0
  8. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/README.md +0 -0
  9. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_cloudflare_compat_flags.pyi +0 -0
  10. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_pyodide_entrypoint_helper.pyi +0 -0
  11. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context.pth +0 -0
  12. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context.py +0 -0
  13. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context_loader.py +0 -0
  14. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/__init__.py +0 -0
  15. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/blob.py +0 -0
  16. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/entrypoints.py +0 -0
  17. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/fetch.py +0 -0
  18. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/formdata.py +0 -0
  19. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/py.typed +0 -0
  20. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/request.py +0 -0
  21. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/response.py +0 -0
  22. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/rpc.py +0 -0
  23. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/types.py +0 -0
  24. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/utils.py +0 -0
  25. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/workflows.py +0 -0
  26. {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/wsgi.py +0 -0
@@ -2,6 +2,19 @@
2
2
 
3
3
  <!-- version list -->
4
4
 
5
+ ## v1.6.6 (2026-08-03)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **runtime-sdk**: Percent-decode `scope["path"]` per the ASGI spec
10
+ ([#169](https://github.com/cloudflare/workers-py/pull/169),
11
+ [`2138e44`](https://github.com/cloudflare/workers-py/commit/2138e44dc0bc419a1227497576154346da3ea522))
12
+
13
+ - **runtime-sdk**: Percent-decode scope["path"] per the ASGI spec
14
+ ([#169](https://github.com/cloudflare/workers-py/pull/169),
15
+ [`2138e44`](https://github.com/cloudflare/workers-py/commit/2138e44dc0bc419a1227497576154346da3ea522))
16
+
17
+
5
18
  ## v1.6.5 (2026-08-03)
6
19
 
7
20
  ### Bug Fixes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workers-runtime-sdk
3
- Version: 1.6.5
3
+ Version: 1.6.6
4
4
  Summary: Python SDK for Cloudflare Workers
5
5
  Project-URL: Homepage, https://github.com/cloudflare/workers-py
6
6
  Project-URL: Bug Tracker, https://github.com/cloudflare/workers-py/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "workers-runtime-sdk"
7
- version = "1.6.5"
7
+ version = "1.6.6"
8
8
  description = "Python SDK for Cloudflare Workers"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -3,6 +3,7 @@ from asyncio import Event, Future, Queue, create_task, ensure_future
3
3
  from collections.abc import Awaitable
4
4
  from contextlib import contextmanager
5
5
  from typing import Any
6
+ from urllib.parse import unquote
6
7
 
7
8
  import js
8
9
 
@@ -55,7 +56,10 @@ def request_to_scope(req, env, ws=False):
55
56
  url = URL.new(req.url)
56
57
  assert url.protocol[-1] == ":"
57
58
  scheme = url.protocol[:-1]
58
- path = url.pathname
59
+ # ASGI requires "path" to be percent-decoded; the encoded original is
60
+ # available to apps via "raw_path".
61
+ # https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope
62
+ path = unquote(url.pathname)
59
63
  assert "?".startswith(url.search[0:1])
60
64
  query_string = url.search[1:].encode()
61
65
  if ws:
@@ -69,6 +73,7 @@ def request_to_scope(req, env, ws=False):
69
73
  "method": req.method,
70
74
  "scheme": scheme,
71
75
  "path": path,
76
+ "raw_path": url.pathname.encode(),
72
77
  "query_string": query_string,
73
78
  "type": ty,
74
79
  "env": env,
@@ -229,7 +229,7 @@ wheels = [
229
229
 
230
230
  [[package]]
231
231
  name = "workers-runtime-sdk"
232
- version = "1.6.5"
232
+ version = "1.6.6"
233
233
  source = { editable = "." }
234
234
 
235
235
  [package.dev-dependencies]