Skip to content

Commit adc87ae

Browse files
Merge pull request #216 from IntersectMBO/changeset-release/main
ci(changesets): version packages
2 parents e56def0 + e48bb55 commit adc87ae

13 files changed

Lines changed: 74 additions & 40 deletions

File tree

.changeset/blueprint-codegen-recursive.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# docs
22

3+
## 0.0.37
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`19829c7`](https://github.com/IntersectMBO/evolution-sdk/commit/19829c7c6e1cd1ac3a33fb180e4482016791dcd5)]:
8+
- @evolution-sdk/evolution@0.3.30
9+
- @evolution-sdk/devnet@1.1.30
10+
311
## 0.0.36
412

513
### Patch Changes

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs",
3-
"version": "0.0.36",
3+
"version": "0.0.37",
44
"private": true,
55
"type": "module",
66
"scripts": {

examples/with-vite-react/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# evolution-vite-react-example
22

3+
## 0.1.16
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`19829c7`](https://github.com/IntersectMBO/evolution-sdk/commit/19829c7c6e1cd1ac3a33fb180e4482016791dcd5)]:
8+
- @evolution-sdk/evolution@0.3.30
9+
310
## 0.1.15
411

512
### Patch Changes

examples/with-vite-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "evolution-vite-react-example",
3-
"version": "0.1.15",
3+
"version": "0.1.16",
44
"private": true,
55
"type": "module",
66
"scripts": {

packages/aiken-uplc/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @evolution-sdk/aiken-uplc
22

3+
## 0.0.22
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`19829c7`](https://github.com/IntersectMBO/evolution-sdk/commit/19829c7c6e1cd1ac3a33fb180e4482016791dcd5)]:
8+
- @evolution-sdk/evolution@0.3.30
9+
310
## 0.0.21
411

512
### Patch Changes

packages/aiken-uplc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@evolution-sdk/aiken-uplc",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"description": "Aiken UPLC evaluator for Evolution SDK with WASM-based local script evaluation",
55
"type": "module",
66
"main": "./dist/index.js",

packages/evolution-devnet/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @evolution-sdk/devnet
22

3+
## 1.1.30
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`19829c7`](https://github.com/IntersectMBO/evolution-sdk/commit/19829c7c6e1cd1ac3a33fb180e4482016791dcd5)]:
8+
- @evolution-sdk/evolution@0.3.30
9+
- @evolution-sdk/aiken-uplc@0.0.22
10+
- @evolution-sdk/scalus-uplc@0.0.20
11+
312
## 1.1.29
413

514
### Patch Changes

packages/evolution-devnet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@evolution-sdk/devnet",
3-
"version": "1.1.29",
3+
"version": "1.1.30",
44
"description": "Local Cardano devnet for testing and development with Docker",
55
"type": "module",
66
"main": "./dist/index.js",

packages/evolution/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
# @evolution-sdk/evolution
22

3+
## 0.3.30
4+
5+
### Patch Changes
6+
7+
- [#215](https://github.com/IntersectMBO/evolution-sdk/pull/215) [`19829c7`](https://github.com/IntersectMBO/evolution-sdk/commit/19829c7c6e1cd1ac3a33fb180e4482016791dcd5) Thanks [@solidsnakedev](https://github.com/solidsnakedev)! - Blueprint codegen now supports recursive type schemas — Plutus types that reference themselves
8+
directly or through an intermediate type (e.g. `MultiSig` containing a `List<MultiSig>` field).
9+
Cyclic references are emitted as typed `Schema.suspend` thunks where the encoded type `I` is
10+
inferred by recursively walking the blueprint definition graph rather than hardcoded to `Data.Constr`:
11+
`list``readonly ItemEncoded[]`, `map``globalThis.Map<Data.Data, Data.Data>`,
12+
`bytes``Uint8Array`, `integer``bigint`, `constructor` and union → `Data.Constr`,
13+
`$ref` followed transitively up to depth 10. The previous hardcoded `Data.Constr` caused a
14+
TypeScript invariance error for any recursive field referencing a list type.
15+
16+
Several other codegen correctness and API improvements ship in the same release:
17+
- **Namespace emission ordering** — the group-by-namespace emitter is replaced by a streaming emitter
18+
that walks a global topological sort and opens/closes namespace blocks on demand. TypeScript namespace
19+
merging handles split declarations transparently. This fixes cases where a type was emitted before
20+
its cross-namespace dependency (e.g. `Option.OfStakeCredential` appearing before `Cardano.Address.StakeCredential`).
21+
- **Cyclic type emit pattern** — cyclic types now emit a `export type X = ...` / `export const X = ...`
22+
pair with no outer `Schema.suspend` wrapper and no `as` cast. Only the inner field references that
23+
close the cycle use typed thunks: `Schema.suspend((): Schema.Schema<T, I> => T)`.
24+
- **`unionStyle` config**`CodegenConfig` gains `unionStyle: "Variant" | "Struct" | "TaggedStruct"`
25+
in place of the removed `forceVariant` and `useSuspend` fields. `Struct` emits
26+
`TSchema.Struct({ Tag: TSchema.Struct({...}, { flatFields: true }) }, { flatInUnion: true })`,
27+
`TaggedStruct` emits `TSchema.TaggedStruct("Tag", {...}, { flatInUnion: true })`,
28+
and `Variant` emits `TSchema.Variant({ Tag: {...} })`.
29+
- **Import hygiene** — generated files emit `import { Schema } from "@evolution-sdk/evolution"`
30+
only when cyclic types are present, rather than always importing from `effect` directly.
31+
`CodegenConfig.imports.effect` is replaced by `imports.schema`.
32+
333
## 0.3.29
434

535
### Patch Changes

0 commit comments

Comments
 (0)