# Changelog

## 2.12.1 - 2026-11-17 - Host-local package discovery

* Discover the host and installed TeqFW packages in its immediate `node_modules`,
  including packages without DI namespaces, and order participants by their
  installed dependencies for application startup and shutdown.
* Ignore non-TeqFW dependencies in the package graph and deduplicate physical
  packages, avoiding false cycles caused by self-referencing symlinks.
* Reject conflicting namespace claims from distinct physical packages, and update
  usage guidance and tests for package and namespace discovery.

## 2.12.0 - 2026-11-17 - FIFO and deferred resolution

* Serialize public `get()` and deferred Provider requests in a Container-owned
  FIFO queue. Entries share prepared policy and Singleton values; an entry
  failure leaves the Container usable and the queue continues.
* Support deferred `~` declarations in `__deps__`, which inject a frozen Provider
  whose `resolve()` starts a separate entry. Awaiting a Provider of the same
  Container during an active resolution is an application error that blocks the
  queue; invoke it after the active entry settles.
* Settle adapted Promise/thenable values before mandatory final-value hardening.
  Ordinary objects and functions delivered by the Container are shallow-frozen,
  including values returned by a configured Hardener.
* Isolate resolution, settlement, hardening, and exposure failures; retain
  meaningful per-entry observations and prevent failed delivery from caching a
  successful root Singleton. Diagnostic logging cannot change resolution.
* Refresh public types, Node.js package lookup and namespace containment, browser
  bundles, usage documentation, and the distributed Agent Skill.

* Breaking: removed the deprecated Namespace Registry source import and its type
  alias. Use `@teqfw/di/node/registry/namespace`.
* Breaking: removed Container configuration builders. Supply Namespace Mappings,
  ordered policy-producer identifiers, logging and introspection through
  `new Container(config)`; test-only `enableTestMode()` and `register()` remain.
* Breaking: namespace discovery reads only `teqfw.fw.di.namespaces`.
  Removed the `teqfw.namespaces` fallback and the unit-test mapping exclusion.

## 2.11.0 - 2026-09-21 - Dependency-resolution release

* Prepared the package documentation for the current dependency-resolution
  model: one Container supports sequential public entry `get()` calls under
  stable policy and one Singleton cache, with declared children resolving
  recursively through `__deps__` inside each entry graph.
* Documented Teq, Node, and npm Dependency Address Kinds; Direct, Singleton,
  and Transient Dependency Lifestyles; and explicit Direct `$$$` semantics.
* Added consumer guidance for structured Dependency Graph, Resolution Trace,
  and Resolution Explanation introspection, public Node.js registry imports,
  and the deprecated Namespace Registry compatibility import.
* Finalized test substitutions against the complete configured and compatibility
  preprocessing policy after preparation while keeping policy materialization
  isolated from test values.
* Rebuilt the published version-matched Agent Skill as self-contained consumer
  guidance and clarified the unresolved consumer type-map boundary.
* Aligned published package positioning with deterministic dependency
  resolution rather than the former token terminology.

## 2.10.0 - 2026-08-27 - Dependency-resolution context

* Added the immutable `TeqFw_Di_Container_ResolutionContext` to preprocess and postprocess hooks. It provides the current dependency identity, root, parent, and root-to-current stack without changing graph identity or lifecycle cache keys.
* Added root, direct-child, nested, and shared-dependency provenance coverage for preprocess hooks.
* Updated the published DI skill and structural type map for the two-argument hook contract.

## 2.9.0 - 2026-08-05 - Strict type model and LSP-aligned developer tooling

* Unified the JSDoc type model on canonical `TeqFw_Di_Dto_*` aliases, removed the legacy `$`-suffixed aliases, and aligned `types.d.ts` with the actual filesystem layout and structural class types.
* Enabled strict TypeScript checking via `jsconfig.json`, added the reproducible `npm run typecheck` script, and wired it into the npm publication workflow.
* Added the `npm run lint:md` script and the markdownlint-cli2-based Markdown validation.
* Added the version-matched `references/types.md` skill reference and aligned the published agent skill guidance with the unified type model and the relaxed Node.js package-graph boundary.
* Refreshed the README promotion with package badges, an agent-driven development positioning, and clarified Node.js quick-start guidance.
* Restored `jsconfig.json` to the published package metadata.
* Updated package version metadata to `2.9.0`.

## 2.8.0 - 2026-07-31 - Registry and Agent Skill publication

* Added an architecture-level catalog for temporary public compatibility commitments, including the review date and removal condition for the deprecated Namespace Registry import.

* Restored `/di/src/Config/NamespaceRegistry.mjs` as a deprecated compatibility re-export; new integrations must use `/di/node/registry/namespace`.

* Converted the published agent interface into the versioned `skills/teqfw-di` Agent Skill, added its manifest declaration and structural contract test, and documented host-owned manual mounting without installation-time mutation.

* Introduced the array-only canonical `teqfw.fw.di.namespaces` schema with support for multiple namespace mappings per package. `teqfw.namespaces` remains a temporary fallback through 2027-01-28, while the unused singular `teqfw.fw.di.namespace` schema was removed.

* Added the public composition-stage PackageRegistry runtime package graph and refactored NamespaceRegistry to consume it. Package metadata interpretation for application providers remains outside DI.

* Replaced the former CDC terminology in source comments, internal variable names, diagnostics, parser errors, and tests with `Dependency Specifier`, without changing identifier syntax or public method behavior.
* Retained `DepId` and its `origin` field as compatibility-level implementation names.
* Updated package version metadata to `2.8.0`.

## 2.7.0 - 2026-07-10 - As-is injection fix and coverage expansion

* Fixed the bug that prevented injecting classes as-is, including named exports resolved without factory wrapping.
* Aligned container namespace aliases and published type declarations with the actual filesystem layout.
* Expanded unit and integration coverage for pipeline execution, dependency key generation, dependency declarations, Promise-safe wrappers, and as-is export resolution.
* Refreshed development dependencies and lockfile metadata before the release.
* Updated package version metadata to `2.7.0`.

## 2.6.2 - 2026-06-08 - Documentation alignment and container simplification

* Removed the legacy `setParser()` extension point and flattened the internal container implementation layout.
* Updated the `ctx/docs/code` documentation to match the current container pipeline, namespace registry flow, and namespace-mapping model.
* Refined the public code-facing documentation so it no longer describes parser replacement or wrapper handling in obsolete terms.
* Updated package version metadata to `2.6.2`.

## 2.6.1 - 2026-06-07 - Type declarations cleanup

* Removed stale `TeqFw_Di_Def_Parser` and `ExportSelector` aliases from `types.d.ts`.
* Updated the parser type alias to `TeqFw_Di_Parser` and aligned it with the moved `src/Parser.mjs` component.
* Updated package version metadata to `2.6.1`.

## 2.6.0 - 2026-06-07 - Parser relocation and contract clarification

* Moved the parser component from the legacy `Def/` path to `src/Parser.mjs` and aligned the related unit test layout with the component structure.
* Removed the internal `ExportSelector` duplicate and kept the runtime orchestration behind a dedicated internal coordinator.
* Clarified and documented the CDC contract so the canonical `__default` form and shorthand lifecycle forms remain supported together.
* Updated the code and context documentation to separate public API, contract-internal modules, and component layout more explicitly.
* Updated package version metadata to `2.6.0`.

## 2.5.1 - 2026-04-12 - Documentation refresh and dependency fix

* Fixed named-only `__deps__` resolution in the container and updated the related tests.
* Rewrote the README and refreshed the agent documentation for the current release line.
* Updated package version metadata to `2.5.1`.

## 2.5.0 - 2026-04-04 - Parser and documentation refinement

* Clarified JSDoc typing and module headers to align with TeqFW specifications.
* Allowed parser recognition of Node.js built-ins that include underscores in their names.
* Updated package version metadata to `2.5.0`.

## 2.4.0 - 2026-03-31 - Test coverage cleanup

* Removed low-value unit tests in favor of broader integration coverage.
* Moved the useful preprocess/postprocess order scenario into integration tests.
* Updated package version metadata to `2.4.0`.

## 2.3.1 - 2026-03-25 - Patch release preparation

* Updated package version metadata to `2.3.1`.
* Prepared the repository for release by including the current working tree state.

## 2.3.0 - 2026-03-25 - Release preparation update

* Updated package version metadata to `2.3.0`.
* Included the current working tree changes in the release preparation commit.

## 2.2.0 - 2026-03-16 - Agent interface alignment release

* Clarified lifecycle marker semantics in the agent interface documentation to match parser behavior (`$`, `$$`, and `$$$`).
* Updated container state model terminology in agent documentation to align with runtime state names.
* Updated package version metadata to `2.2.0`.

## 2.1.0 - 2026-03-16 - Protected proxy lifecycle handling

* Fixed container lifecycle handling for protected proxy components that reject `.then` probing or freezing.
* Clarified and documented the sync-only composition contract for factories and wrappers.
* Simplified Promise contract checks and aligned related tests with the updated runtime behavior.
* Updated package version metadata to `2.1.0`.

## 2.0.5 - 2026-03-13 - Convention alignment release

* Fixed the `Container.get` JSDoc return typing.
* Removed `jsconfig.json` from the published package metadata.
* Aligned DTO and Enum modules with the updated TeqFW convention documents.
* Updated package version metadata to `2.0.5`.

## 2.0.4 - 2026-03-10 - LLM-first project positioning

* Reframed `README.md` around TeqFW architecture, runtime linking, and LLM-agent-oriented development.
* Rewrote `PHILOSOPHY.md` into a concise statement of TeqFW principles for human and machine-oriented development.
* Updated package version metadata to `2.0.4`.

## 2.0.3 - 2026-03-07 - Package agent interface

* Updated package version metadata to `2.0.3`.

## 2.0.2 - 2026-03-05

* Replaced `tsconfig.json` with `jsconfig.json` for JavaScript type-checking configuration.
* Updated package publish list to include `jsconfig.json` and exclude legacy `teqfw.json`.
* Fixed `test:unit` and `test:integration` scripts to run all `*.test.mjs` files in nested directories.
* Updated package version metadata to `2.0.2`.

## 2.0.1 - 2026-03-04

* Regenerated `types.d.ts` according to updated type-map conventions.
* Unified package type aliases under a deterministic global declaration registry.
* Updated package version metadata to `2.0.1`.

## 2.0.0 - 2026-02-27

* Started a new changelog lineage for generation 2 of `@teqfw/di`.
* Replaced legacy v1 implementation with the new architecture.
* Promoted `src2/` to `src/` and `test2/` to `test/` as the primary code and test layout.
* Updated project configuration and type paths to the new directory structure.
