katagami 1.0.0 → 1.0.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.

Potentially problematic release.


This version of katagami might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/package.json +7 -2
  2. package/dist/types.d.ts +0 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katagami",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lightweight TypeScript DI container with full type inference",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,12 +24,17 @@
24
24
  "ioc",
25
25
  "typescript"
26
26
  ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/hiroiku/katagami.git"
30
+ },
27
31
  "engines": {
28
32
  "bun": ">=1.0.0"
29
33
  },
30
34
  "scripts": {
31
35
  "preinstall": "case \"$npm_config_user_agent\" in bun*) ;; *) echo 'Error: This project requires Bun. Install: https://bun.sh' >&2; exit 1;; esac",
32
- "build": "bun run build:types && bun run build:esm && bun run build:cjs",
36
+ "clean": "rm -rf dist",
37
+ "build": "bun run clean && bun run build:types && bun run build:esm && bun run build:cjs",
33
38
  "build:types": "tsc",
34
39
  "build:esm": "bun build ./src/index.ts --outdir dist --format esm",
35
40
  "build:cjs": "bun build ./src/index.ts --outfile dist/index.cjs --format cjs",
package/dist/types.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export type AbstractConstructor<T = unknown> = abstract new (...args: never[]) => T;
2
- /**
3
- * Resolver passed to factory callbacks.
4
- *
5
- * @template T PropertyKey-based type map (defined via interface, order-independent)
6
- * @template C Union of registered class constructors (order-dependent)
7
- */
8
- export interface Resolver<T, C extends AbstractConstructor = AbstractConstructor, AC extends AbstractConstructor = never> {
9
- /**
10
- * Resolve an instance for the given token.
11
- *
12
- * @param token A registered token
13
- * @returns The instance associated with the token
14
- */
15
- resolve<V>(token: AbstractConstructor<V> & AC): Promise<V>;
16
- resolve<V>(token: AbstractConstructor<V> & C): V;
17
- resolve<K extends keyof T>(token: K): T[K];
18
- }