feat(parser): support Standard Schema and upgrade to Zod v4 #5579
pr-run-linting-check-and-unit-tests.yml
on: pull_request
run-unit-tests
/
check-layer-publisher
1m 32s
run-unit-tests
/
check-docs-snippets
1m 15s
run-unit-tests
/
check-docs
1m 15s
Matrix: run-unit-tests / check-examples
Matrix: run-unit-tests / code-quality
Annotations
6 errors and 74 warnings
run-unit-tests / code-quality (22, packages/parser)
Process completed with exit code 1.
|
tests/types/envelopes.test-d.ts > Types > infers array types with $name envelope:
packages/parser/tests/types/envelopes.test-d.ts#L56
TypeCheckError: Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T, unknown, $ZodTypeInternals<T, unknown>>) T[]; safeParse<T>(data unknown, schema ZodType<T, unknown, $ZodTypeInternals<...>>) ParsedResult<...>; } | { ...; }' does not satisfy the constraint 'Envelope'.
Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T>) DynamoDBStreamEnvelopeResponse<ZodType<T>>[]; safeParse<T>(data unknown, schema ZodType<T>) ParsedResult<unknown, DynamoDBStreamEnvelopeResponse<ZodType<T>>[]>; }' is not assignable to type 'Envelope'.
Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T>) DynamoDBStreamEnvelopeResponse<ZodType<T>>[]; safeParse<T>(data unknown, schema ZodType<T>) ParsedResult<unknown, DynamoDBStreamEnvelopeResponse<ZodType<T>>[]>; }' is not assignable to type 'ArrayEnvelope'.
The types returned by 'parse(...)' are incompatible between these types.
Type 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>[]' is not assignable to type 'T[]'.
Type 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>'.
❯ tests/types/envelopes.test-d.ts:56:51
|
run-unit-tests / code-quality (18, packages/parser)
Process completed with exit code 1.
|
tests/types/envelopes.test-d.ts > Types > infers array types with $name envelope:
packages/parser/tests/types/envelopes.test-d.ts#L56
TypeCheckError: Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T, unknown, $ZodTypeInternals<T, unknown>>) T[]; safeParse<T>(data unknown, schema ZodType<T, unknown, $ZodTypeInternals<...>>) ParsedResult<...>; } | { ...; }' does not satisfy the constraint 'Envelope'.
Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T>) DynamoDBStreamEnvelopeResponse<ZodType<T>>[]; safeParse<T>(data unknown, schema ZodType<T>) ParsedResult<unknown, DynamoDBStreamEnvelopeResponse<ZodType<T>>[]>; }' is not assignable to type 'Envelope'.
Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T>) DynamoDBStreamEnvelopeResponse<ZodType<T>>[]; safeParse<T>(data unknown, schema ZodType<T>) ParsedResult<unknown, DynamoDBStreamEnvelopeResponse<ZodType<T>>[]>; }' is not assignable to type 'ArrayEnvelope'.
The types returned by 'parse(...)' are incompatible between these types.
Type 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>[]' is not assignable to type 'T[]'.
Type 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>'.
❯ tests/types/envelopes.test-d.ts:56:51
|
run-unit-tests / code-quality (20, packages/parser)
Process completed with exit code 1.
|
tests/types/envelopes.test-d.ts > Types > infers array types with $name envelope:
packages/parser/tests/types/envelopes.test-d.ts#L56
TypeCheckError: Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T, unknown, $ZodTypeInternals<T, unknown>>) T[]; safeParse<T>(data unknown, schema ZodType<T, unknown, $ZodTypeInternals<...>>) ParsedResult<...>; } | { ...; }' does not satisfy the constraint 'Envelope'.
Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T>) DynamoDBStreamEnvelopeResponse<ZodType<T>>[]; safeParse<T>(data unknown, schema ZodType<T>) ParsedResult<unknown, DynamoDBStreamEnvelopeResponse<ZodType<T>>[]>; }' is not assignable to type 'Envelope'.
Type '{ [envelopeDiscriminator] "array"; parse<T>(data unknown, schema ZodType<T>) DynamoDBStreamEnvelopeResponse<ZodType<T>>[]; safeParse<T>(data unknown, schema ZodType<T>) ParsedResult<unknown, DynamoDBStreamEnvelopeResponse<ZodType<T>>[]>; }' is not assignable to type 'ArrayEnvelope'.
The types returned by 'parse(...)' are incompatible between these types.
Type 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>[]' is not assignable to type 'T[]'.
Type 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'DynamoDBStreamEnvelopeResponse<ZodType<T, unknown, $ZodTypeInternals<T, unknown>>>'.
❯ tests/types/envelopes.test-d.ts:56:51
|
run-unit-tests / code-quality (22, packages/kafka)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / check-docs-snippets
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / check-docs-snippets
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/tracer)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/tracer)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/metrics)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/metrics)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/parser)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / check-docs
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/event-handler)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/event-handler)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/commons)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/commons)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/validation)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/validation)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/jmespath)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/jmespath)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / check-examples (app)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / check-examples (app)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/logger)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/logger)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/idempotency)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/idempotency)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/batch)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/batch)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/logger)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/logger)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (22, packages/parameters)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (22, packages/parameters)
Cache not found for keys: 22-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/kafka)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/kafka)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/validation)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/validation)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/commons)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/commons)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/metrics)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/metrics)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/parameters)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/parameters)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/commons)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/commons)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/tracer)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/tracer)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/batch)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/batch)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/event-handler)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/batch)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/event-handler)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/batch)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/logger)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/parser)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/metrics)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/metrics)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/event-handler)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/event-handler)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/idempotency)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/idempotency)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/tracer)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/tracer)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/idempotency)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/idempotency)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/jmespath)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (20, packages/jmespath)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (20, packages/parser)
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/parameters)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/parameters)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/validation)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/validation)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/kafka)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/kafka)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / code-quality (18, packages/jmespath)
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / code-quality (18, packages/jmespath)
Cache not found for keys: 18-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|
run-unit-tests / check-layer-publisher
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
run-unit-tests / check-layer-publisher
Cache not found for keys: 20-node-modules-1f7eee551b02d015d0f609d9c3a491db23794e3c5c4f116fe25dc3433626d9cc
|