Skip to content
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
11 changes: 0 additions & 11 deletions .changeset/fresh-pears-smoke.md

This file was deleted.

13 changes: 13 additions & 0 deletions packages/di/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @btravstack/di

## 0.1.1

### Patch Changes

- 6384640: Fix `TS4020` in consumers that export a port. `export class OrderRepository extends
Port("OrderRepository")<Shape> {}` — the pattern the README teaches — could not emit
Comment on lines +7 to +8
declarations: the emitter had no name for the heritage expression's type, so it expanded
down to `PortInstance`'s module-private `unique symbol` brands and reported "has or is
using private name 'ID'". `PortClass` and `ManyPortClass` are now exported as types, which
gives the emitter a name to stop at. The brand symbols themselves stay unexported, so port
identity remains nominal and a port instance remains unforgeable.
2 changes: 1 addition & 1 deletion packages/di/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@btravstack/di",
"version": "0.1.0",
"version": "0.1.1",
"description": "A module-based dependency-injection container for TypeScript: ports as the vocabulary an application defines, providers bound at one edge, and modules that declare their imports and exports",
"keywords": [
"container",
Expand Down
Loading