Skip to content

Commit

Permalink
v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mnasyrov committed Sep 8, 2023
1 parent 2d6423c commit 5513ee1
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 15 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.4.0](https://github.com/mnasyrov/ditox/compare/v2.3.1...v2.4.0) (2023-09-08)

### Features

- Ability to create a shareable token by providing a key for its symbol
([4fde1d9](https://github.com/mnasyrov/ditox/commit/4fde1d95dc728018c67f8fc5e154597e9115d8b5))

### Reverts

- Revert to TypeDoc 0.23
([e3e836e](https://github.com/mnasyrov/ditox/commit/e3e836e48ca55794359ed3e94197eb27977002ce))

# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.3.1](https://github.com/mnasyrov/ditox/compare/v2.3.0...v2.3.1) (2023-04-01)

**Note:** Version bump only for package ditox-root
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.3.1",
"version": "2.4.0",
"useWorkspaces": true,
"hoist": "**",
"forceLocal": true,
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions packages/ditox-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.4.0](https://github.com/mnasyrov/ditox/compare/v2.3.1...v2.4.0) (2023-09-08)

**Note:** Version bump only for package ditox-react

# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.3.1](https://github.com/mnasyrov/ditox/compare/v2.3.0...v2.3.1) (2023-04-01)

**Note:** Version bump only for package ditox-react
Expand Down
4 changes: 2 additions & 2 deletions packages/ditox-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ditox-react",
"version": "2.3.1",
"version": "2.4.0",
"description": "Dependency injection container for React.js",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -57,7 +57,7 @@
"typedoc": "typedoc"
},
"dependencies": {
"ditox": "2.3.1"
"ditox": "2.4.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
Expand Down
12 changes: 12 additions & 0 deletions packages/ditox/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.4.0](https://github.com/mnasyrov/ditox/compare/v2.3.1...v2.4.0) (2023-09-08)

### Features

- Ability to create a shareable token by providing a key for its symbol
([4fde1d9](https://github.com/mnasyrov/ditox/commit/4fde1d95dc728018c67f8fc5e154597e9115d8b5))

# Change Log

All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.3.1](https://github.com/mnasyrov/ditox/compare/v2.3.0...v2.3.1) (2023-04-01)

**Note:** Version bump only for package ditox
Expand Down
25 changes: 24 additions & 1 deletion packages/ditox/lib-deno/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,36 @@ type OptionalToken<T> = {
optionalValue: T;
};
/**
* Binding token.
* Binding token
*/
type Token<T> = RequiredToken<T> | OptionalToken<T>;
/**
* Token options
*/
type TokenOptions =
| {
/**
* Key for token's symbol. It allows to create shareable tokens.
*/
key: string;
/** @ignore */
description?: undefined;
}
| {
/** Description for better error messages */
description?: string;
/** @ignore */
key?: undefined;
};
/**
* Creates a new binding token.
* @param description - Token description for better error messages.
*/
declare function token<T>(description?: string): Token<T>;
/**
* Creates a new binding token.
* @param options - Token description for better error messages.
*/ declare function token<T>(options?: TokenOptions): Token<T>;
/**
* Decorate a token with an optional value.
* This value is be used as default value in case a container does not have registered token.
Expand All @@ -37,6 +59,7 @@ declare function optional<T>(
optionalValue: T,
): OptionalToken<T>;
declare function optional<T>(token: Token<T>): OptionalToken<T | undefined>;

/**
* ResolverError is thrown by the resolver when a token is not found in a container.
*/
Expand Down
13 changes: 7 additions & 6 deletions packages/ditox/lib-deno/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ditox/lib-deno/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/ditox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ditox",
"version": "2.3.1",
"version": "2.4.0",
"description": "Dependency injection for modular web applications",
"license": "MIT",
"author": "Mikhail Nasyrov <[email protected]> (https://github.com/mnasyrov)",
Expand Down

0 comments on commit 5513ee1

Please sign in to comment.