From 063467fb6d5dc72f402f1f9ae2b962104a2c67d2 Mon Sep 17 00:00:00 2001 From: artin Date: Fri, 19 Jan 2024 15:14:57 +0800 Subject: [PATCH] chore(release): 2.0.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ package.json | 2 +- src/constants.ts | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e926b43..763a741 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,26 @@ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. +## [2.0.0](https://github.com/opensumi/di/compare/v1.10.1...v2.0.0) (2024-01-19) + +### Breaking Changes + +* We remove the direct import of reflect-metadata, you need import it by your self. +* Remove `__id` and `__injectorId` from the instantiated instance. + +### Features + +* hooks support priority option ([5f13619](https://github.com/opensumi/di/commit/5f13619eb644fa04ad486c511bcf8a18229dee5c)) +* make dispose support disposing instance of useFactory ([#116](https://github.com/opensumi/di/issues/116)) ([4a9e4a3](https://github.com/opensumi/di/commit/4a9e4a345dfd1ece3f67ecca315fb0acba62025c)) +* `hasInstance` support to check `useFactory`. + + +### Bug Fixes + +* factory instances should save proxied ([dad48a8](https://github.com/opensumi/di/commit/dad48a81f47033e090202667cd4b3fccb9fa8e14)) +* instance should be disposed ([5f09c6a](https://github.com/opensumi/di/commit/5f09c6a17dd79175c14a6a688b06892572699024)) +* we should listen on instance disposed ([362196f](https://github.com/opensumi/di/commit/362196f50bb4f8a476b0d8c108dfbdb1455e1d9a)) + ## [1.10.1](https://github.com/opensumi/di/compare/v1.10.0...v1.10.1) (2023-12-12) diff --git a/package.json b/package.json index a97ab64..caf2997 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@opensumi/di", - "version": "1.10.1", + "version": "2.0.0", "description": "A dependency injection tool for Javascript.", "license": "MIT", "module": "esm/index.js", diff --git a/src/constants.ts b/src/constants.ts index 9b0b66f..5e0f240 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,3 +1,3 @@ // VERSION GENERATED BY standard-version. // See package.json > standard-version for details. -export const VERSION = '1.10.1'; +export const VERSION = '2.0.0';