@travetto/context 7.0.4 → 7.0.6

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/README.md CHANGED
@@ -23,7 +23,7 @@ The decorator will load the context on invocation, and will keep the context act
23
23
 
24
24
  **Code: Usage of context within a service**
25
25
  ```typescript
26
- import { AsyncContext, WithAsyncContext } from '@travetto/context';
26
+ import { type AsyncContext, WithAsyncContext } from '@travetto/context';
27
27
  import { Inject } from '@travetto/di';
28
28
 
29
29
  const NameSymbol = Symbol();
@@ -73,7 +73,7 @@ export class AsyncContextValue<T = unknown> {
73
73
 
74
74
  **Code: Usage of context value within a service**
75
75
  ```typescript
76
- import { AsyncContext, AsyncContextValue, WithAsyncContext } from '@travetto/context';
76
+ import { type AsyncContext, AsyncContextValue, WithAsyncContext } from '@travetto/context';
77
77
  import { Inject } from '@travetto/di';
78
78
 
79
79
  export class ContextValueService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/context",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "type": "module",
5
5
  "description": "Async-aware state management, maintaining context across asynchronous calls.",
6
6
  "keywords": [
@@ -27,10 +27,10 @@
27
27
  "directory": "module/context"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/di": "^7.0.4"
30
+ "@travetto/di": "^7.0.6"
31
31
  },
32
32
  "peerDependencies": {
33
- "@travetto/test": "^7.0.4"
33
+ "@travetto/test": "^7.0.6"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@travetto/test": {
package/src/decorator.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { AsyncMethodDescriptor } from '@travetto/runtime';
1
+ import type { AsyncMethodDescriptor } from '@travetto/runtime';
2
2
 
3
- import { AsyncContext } from './service.ts';
3
+ import type { AsyncContext } from './service.ts';
4
4
 
5
5
  /**
6
6
  * Allows running a function while providing an async context
package/src/value.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
1
+ import type { AsyncLocalStorage } from 'node:async_hooks';
2
2
 
3
3
  import { AppError, castTo } from '@travetto/runtime';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { DependencyRegistryIndex } from '@travetto/di';
2
- import { Class } from '@travetto/runtime';
2
+ import type { Class } from '@travetto/runtime';
3
3
  import { Registry } from '@travetto/registry';
4
4
  import { SuiteRegistryIndex } from '@travetto/test';
5
5