feat: Completely remove TypeScript AST dependency and migrate to string-based code generation #377
Annotations
6 errors and 2 warnings
|
build (22.x, ubuntu-latest)
Process completed with exit code 1.
|
|
test/__tests__/functional/coudflare-test.ts > Unknown > client.ts:
test/__tests__/functional/coudflare-test.ts#L11
Error: Snapshot `Unknown > client.ts 1` mismatched
- Expected
+ Received
@@ -16253,11 +16253,11 @@
export type waf$managed$rules_traditional_deny_rule = Schemas.waf$managed$rules_base & {
allowed_modes?: Schemas.waf$managed$rules_allowed_modes_deny_traditional;
default_mode?: Schemas.waf$managed$rules_default_mode;
mode?: Schemas.waf$managed$rules_mode_deny_traditional;
};
- /** Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. */
+ /** Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. */
export type waitingroom_additional_routes = {
/** The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://). */
host?: string;
/** Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported. */
path?: string;
@@ -37069,11 +37069,11 @@
/** Identifier for the schema-ID */
schema_id: Parameters.api$shield_schema_id;
}
export interface RequestBody$api$shield$schema$validation$enable$validation$for$a$schema {
"application/json": {
- validation_enabled?: Schemas.api$shield_validation_enabled & (string);
+ validation_enabled?: Schemas.api$shield_validation_enabled & string;
};
}
export interface Response$api$shield$schema$validation$enable$validation$for$a$schema$Status$200 {
"application/json": Schemas.api$shield_api$response$single & {
result?: Schemas.api$shield_public_schema;
@@ -65541,10 +65541,11 @@
/**
* Get latest Internet traffic anomalies.
* Internet traffic anomalies are signals that might point to an outage,
* These alerts are automatically detected by Radar and then manually verified by our team.
* This endpoint returns the latest alerts.
+ *
*/
radar$get$traffic$anomalies: (params: Params$radar$get$traffic$anomalies, option?: RequestOption): Promise<Response$radar$get$traffic$anomalies$Status$200["application/json"]> => {
const url = _baseUrl + `/radar/traffic_anomalies`;
const headers = {
Accept: "application/json"
@@ -65570,10 +65571,11 @@
/**
* Get top locations by total traffic anomalies generated.
* Internet traffic anomalies are signals that might point to an outage,
* These alerts are automatically detected by Radar and then manually verified by our team.
* This endpoint returns the sum of alerts grouped by location.
+ *
*/
radar$get$traffic$anomalies$top: (params: Params$radar$get$traffic$anomalies$top, option?: RequestOption): Promise<Response$radar$get$traffic$anomalies$top$Status$200["application/json"]> => {
const url = _baseUrl + `/radar/traffic_anomalies/locations`;
const headers = {
Accept: "application/json"
❯ test/__tests__/functional/coudflare-test.ts:11:18
|
|
test/__tests__/class/cloudflare-test.ts > Unknown > client.ts:
test/__tests__/class/cloudflare-test.ts#L11
Error: Snapshot `Unknown > client.ts 1` mismatched
- Expected
+ Received
@@ -16253,11 +16253,11 @@
export type waf$managed$rules_traditional_deny_rule = Schemas.waf$managed$rules_base & {
allowed_modes?: Schemas.waf$managed$rules_allowed_modes_deny_traditional;
default_mode?: Schemas.waf$managed$rules_default_mode;
mode?: Schemas.waf$managed$rules_mode_deny_traditional;
};
- /** Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. */
+ /** Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. */
export type waitingroom_additional_routes = {
/** The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://). */
host?: string;
/** Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported. */
path?: string;
@@ -37069,11 +37069,11 @@
/** Identifier for the schema-ID */
schema_id: Parameters.api$shield_schema_id;
}
export interface RequestBody$api$shield$schema$validation$enable$validation$for$a$schema {
"application/json": {
- validation_enabled?: Schemas.api$shield_validation_enabled & (string);
+ validation_enabled?: Schemas.api$shield_validation_enabled & string;
};
}
export interface Response$api$shield$schema$validation$enable$validation$for$a$schema$Status$200 {
"application/json": Schemas.api$shield_api$response$single & {
result?: Schemas.api$shield_public_schema;
@@ -65576,10 +65576,11 @@
/**
* Get latest Internet traffic anomalies.
* Internet traffic anomalies are signals that might point to an outage,
* These alerts are automatically detected by Radar and then manually verified by our team.
* This endpoint returns the latest alerts.
+ *
*/
public async radar$get$traffic$anomalies(params: Params$radar$get$traffic$anomalies, option?: RequestOption): Promise<Response$radar$get$traffic$anomalies$Status$200["application/json"]> {
const url = this.baseUrl + `/radar/traffic_anomalies`;
const headers = {
Accept: "application/json"
@@ -65605,10 +65606,11 @@
/**
* Get top locations by total traffic anomalies generated.
* Internet traffic anomalies are signals that might point to an outage,
* These alerts are automatically detected by Radar and then manually verified by our team.
* This endpoint returns the sum of alerts grouped by location.
+ *
*/
public async radar$get$traffic$anomalies$top(params: Params$radar$get$traffic$anomalies$top, option?: RequestOption): Promise<Response$radar$get$traffic$anomalies$top$Status$200["application/json"]> {
const url = this.baseUrl + `/radar/traffic_anomalies/locations`;
const headers = {
Accept: "application/json"
❯ test/__tests__/class/cloudflare-test.ts:11:18
|
|
test/__tests__/currying-functional/coudflare-test.ts > Unknown > client.ts:
test/__tests__/currying-functional/coudflare-test.ts#L11
Error: Snapshot `Unknown > client.ts 1` mismatched
- Expected
+ Received
@@ -16253,11 +16253,11 @@
export type waf$managed$rules_traditional_deny_rule = Schemas.waf$managed$rules_base & {
allowed_modes?: Schemas.waf$managed$rules_allowed_modes_deny_traditional;
default_mode?: Schemas.waf$managed$rules_default_mode;
mode?: Schemas.waf$managed$rules_mode_deny_traditional;
};
- /** Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. */
+ /** Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. */
export type waitingroom_additional_routes = {
/** The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://). */
host?: string;
/** Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported. */
path?: string;
@@ -37069,11 +37069,11 @@
/** Identifier for the schema-ID */
schema_id: Parameters.api$shield_schema_id;
}
export interface RequestBody$api$shield$schema$validation$enable$validation$for$a$schema {
"application/json": {
- validation_enabled?: Schemas.api$shield_validation_enabled & (string);
+ validation_enabled?: Schemas.api$shield_validation_enabled & string;
};
}
export interface Response$api$shield$schema$validation$enable$validation$for$a$schema$Status$200 {
"application/json": Schemas.api$shield_api$response$single & {
result?: Schemas.api$shield_public_schema;
@@ -65538,10 +65538,11 @@
/**
* Get latest Internet traffic anomalies.
* Internet traffic anomalies are signals that might point to an outage,
* These alerts are automatically detected by Radar and then manually verified by our team.
* This endpoint returns the latest alerts.
+ *
*/
export const radar$get$traffic$anomalies = <RequestOption>(apiClient: ApiClient<RequestOption>) => (params: Params$radar$get$traffic$anomalies, option?: RequestOption): Promise<Response$radar$get$traffic$anomalies$Status$200["application/json"]> => {
const uri = `/radar/traffic_anomalies`;
const headers = {
Accept: "application/json"
@@ -65567,10 +65568,11 @@
/**
* Get top locations by total traffic anomalies generated.
* Internet traffic anomalies are signals that might point to an outage,
* These alerts are automatically detected by Radar and then manually verified by our team.
* This endpoint returns the sum of alerts grouped by location.
+ *
*/
export const radar$get$traffic$anomalies$top = <RequestOption>(apiClient: ApiClient<RequestOption>) => (params: Params$radar$get$traffic$anomalies$top, option?: RequestOption): Promise<Response$radar$get$traffic$anomalies$top$Status$200["application/json"]> => {
const uri = `/radar/traffic_anomalies/locations`;
const headers = {
Accept: "application/json"
❯ test/__tests__/currying-functional/coudflare-test.ts:11:18
|
|
build (22.x, windows-latest)
The strategy configuration was canceled because "build._22_x_ubuntu-latest" failed
|
|
build (22.x, windows-latest)
The operation was canceled.
|
|
build (22.x, ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
build (22.x, windows-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|