Skip to content

Commit 9685e7c

Browse files
Release version 2.0.0 with the Python endorcer refactor
1 parent c0288b8 commit 9685e7c

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [2.0.0] - 2022-10-25
9+
### Changed
10+
- Configuration fields' names align with the spec
11+
- Async activities fields align with the spec
12+
- Risk activity fields align with the spec
13+
- Monitored and enforced routes functionality aligned with the spec
14+
- `px_custom_verification_handler` function return `Response` object instead of data, headers and status
15+
- `px_sensitive_routes_regex`, `px_sensitive_routes`, `px_whitelist_routes_regex` and `px_whitelist_routes` configuration fields should contain the exact path
16+
- Changed `debug_mode` configuration field to `px_logger_severity` and change the expected values to `error` and `debug`
17+
18+
### Fixed
19+
- Remove unnecessary risk api activity fields which might cause a bad request response from the collector
20+
21+
### Added
22+
- Added `request_id` field to the context
23+
- Added implementation for handling s2s_error and enforcer_error.
24+
825
## [1.2.0] - 2022-04-11
926
### Added
1027
- New block page implementation

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[PerimeterX](http://www.perimeterx.com) Python 3 Middleware
77
=============================================================
8-
> Latest stable version: [v1.2.0](https://pypi.org/project/perimeterx-python-3-wsgi/)
8+
> Latest stable version: [v2.0.0](https://pypi.org/project/perimeterx-python-3-wsgi/)
99
1010
Table of Contents
1111
-----------------

perimeterx/px_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
EMPTY_GIF_B64 = 'R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='
2828
COLLECTOR_HOST = 'collector.perimeterx.net'
2929
FIRST_PARTY_FORWARDED_FOR = 'X-FORWARDED-FOR'
30-
MODULE_VERSION = 'Python 3 WSGI Module v1.2.0'
30+
MODULE_VERSION = 'Python 3 WSGI Module v2.0.0'
3131
API_RISK = '/api/v3/risk'
3232
PAGE_REQUESTED_ACTIVITY = 'page_requested'
3333
BLOCK_ACTIVITY = 'block'

px_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.0",
2+
"version": "2.0.0",
33
"supported_features": [
44
"additional_activity_handler",
55
"advanced_blocking_response",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
version = 'v1.2.0'
5+
version = 'v2.0.0'
66
setup(name='perimeterx-python-3-wsgi',
77
version=version,
88
license='MIT',

0 commit comments

Comments
 (0)