@theokit/orm 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 302a9eb: O peer range do `@theokit/di` deixa de prometer versões em que o pacote não funciona.
|
|
8
|
+
|
|
9
|
+
`0.2.0` declarava `^0.1.0 || ^0.2.0`, e nenhuma 0.1.x atende ao que o `src/` usa. Um consumidor
|
|
10
|
+
que resolvesse para o piso instalava sem `ERESOLVE` e sem aviso de peer, e partia depois — em
|
|
11
|
+
`0.1.0`, com `TypeError: decorator is not a function` dentro do `reflect-metadata`, longe do range
|
|
12
|
+
que causou; em `0.1.1`, com `OrmConfigurationError: @Transactional run: no DataSource bound to
|
|
13
|
+
instance`.
|
|
14
|
+
|
|
15
|
+
Medido versão a versão rodando a suíte contra cada piso, não deduzido da presença de um símbolo:
|
|
16
|
+
`0.1.0` não exporta `PostConstruct`, `0.1.1` exporta mas o `@Transactional` gerido pelo container
|
|
17
|
+
ainda quebra, `0.2.0` passa. O range passa a ser `^0.2.0` (usetheokit/theokit-di#44).
|
|
18
|
+
|
|
3
19
|
All notable changes to `@theokit/orm` are documented in this file.
|
|
4
20
|
|
|
5
21
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
@@ -7,6 +23,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
23
|
|
|
8
24
|
## [Unreleased]
|
|
9
25
|
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- The declared peer range on `@theokit/di` no longer promises versions this package does not work
|
|
29
|
+
with. It read `^0.1.0 || ^0.2.0`, but no `0.1.x` release supports a container-managed
|
|
30
|
+
`@Transactional` class. `0.1.0` does not export `PostConstruct` at all, so defining the class
|
|
31
|
+
threw `TypeError: decorator is not a function`; `0.1.1` exports it, but the container never
|
|
32
|
+
calls it, so the hook that binds the DataSource silently never ran and the first transactional
|
|
33
|
+
method raised `OrmConfigurationError: no DataSource bound to instance`. The container only began
|
|
34
|
+
invoking the hook in `@theokit/di@0.2.0`. Both installs resolved without a peer warning. The
|
|
35
|
+
range is now `^0.2.0`, which is the whole of what actually works (#44)
|
|
36
|
+
|
|
10
37
|
## [0.2.0] - 2026-08-21
|
|
11
38
|
|
|
12
39
|
### Added
|
|
@@ -36,7 +63,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
36
63
|
- `@Transactional` no longer claims the container binds its DataSource automatically. Nothing ever did. The error message now names `bindDataSourceToInstance`, the one call that fixes it, and the docs show the container recipe: inject `ORM_DATA_SOURCE_TOKEN` and bind in a `@PostConstruct` hook (#4).
|
|
37
64
|
- **Breaking:** `@Transactional({ isolationLevel })` was accepted and silently ignored — the options parameter was never read. The level is now passed to the driver, and rejected with an `OrmConfigurationError` on `sqlite`, which has no per-transaction isolation level to set. Code that passed a level on sqlite and appeared to work was never getting one; it now fails instead of pretending (#4).
|
|
38
65
|
|
|
39
|
-
|
|
40
66
|
## [0.1.0] - 2026-06-22
|
|
41
67
|
|
|
42
68
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theokit/orm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Repository pattern + @InjectRepository decorator + agent-aware columns + @Transactional + schema export polyglot over drizzle-orm, consuming @theokit/di for inversion of control. NestJS TypeORM-equivalent DX for the theokit ecosystem.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/usetheokit/theokit-di#readme",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"Theo"
|
|
59
59
|
],
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@theokit/di": "^0.
|
|
61
|
+
"@theokit/di": "^0.2.0",
|
|
62
62
|
"drizzle-orm": ">=0.36.0",
|
|
63
63
|
"reflect-metadata": "^0.2.0"
|
|
64
64
|
},
|