Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.12.0 #71

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.12.0-stage.1](https://github.com/aziontech/lib/compare/v1.11.1...v1.12.0-stage.1) (2024-11-25)


### Features

* azion.config 'criteria' prop ([3739d04](https://github.com/aziontech/lib/commit/3739d04531ab2363392c010c1f7caf89d92404b6))

### [1.11.1](https://github.com/aziontech/lib/compare/v1.11.0...v1.11.1) (2024-11-14)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azion",
"version": "1.11.1",
"version": "1.12.0-stage.1",
"description": "Azion Packages for Edge Computing.",
"bin": {
"azion": "./bin/azion",
Expand Down
48 changes: 48 additions & 0 deletions packages/config/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
export const RULE_VARIABLES = [
'arg_param',
'args',
'cookie_name',
'device_group',
'geoip_city_continent_code',
'geoip_city_country_code',
'geoip_continent_code',
'geoip_city_country_name',
'geoip_city',
'geoip_country_code',
'geoip_country_name',
'geoip_region_name',
'geoip_region',
'host',
'http_header',
'remote_addr',
'remote_user',
'request',
'request_method',
'request_uri',
'scheme',
'sent_http_header',
'status',
'upstream_addr',
'upstream_cookie_name',
'upstream_http_header',
'upstream_status',
'uri',
] as const;

export const RULE_OPERATORS_WITH_VALUE = [
'is_equal',
'is_not_equal',
'starts_with',
'does_not_start_with',
'matches',
'does_not_match',
] as const;

export const RULE_OPERATORS_WITHOUT_VALUE = ['exists', 'does_not_exist'] as const;

export const RULE_CONDITIONALS = ['if', 'and', 'or'] as const;

export type RuleVariable = (typeof RULE_VARIABLES)[number];
export type RuleOperatorWithValue = (typeof RULE_OPERATORS_WITH_VALUE)[number];
export type RuleOperatorWithoutValue = (typeof RULE_OPERATORS_WITHOUT_VALUE)[number];
export type RuleConditional = (typeof RULE_CONDITIONALS)[number];
Loading