> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# @wolfstar/decorators

> Changelog for @wolfstar/decorators: typescript decorators for http-framework pieces.

Changes to [`@wolfstar/decorators`](https://github.com/wolfstar-project/stars-components/tree/main/packages/decorators). It provides TypeScript decorators to configure [`@wolfstar/http-framework`](https://stars-components.js.org/documentation/packages/http-framework) pieces and gate their methods, modelled after `@sapphire/decorators`. For the weekly summary across all packages, see the [changelog overview](https://stars-components.js.org/documentation/changelog/index.md).

## `0.1.3` (2026-10-17)

### Updates

* **`@wolfstar/http-framework` range** — The published peer range is now `^6.4.0`. npm still listed `^6.3.0`. ([#332](https://github.com/wolfstar-project/stars-components/pull/332))

## `0.1.2` (2026-10-08)

### Updates

* **`PreconditionError` events documented** — The docs now state that with `@wolfstar/http-framework` 6.3.0, the `PreconditionError` thrown by `RequiresUserPermissions` and `RequiresClientPermissions` is emitted as `chatInputCommandDenied`, `contextMenuCommandDenied`, or `interactionHandlerDenied` instead of `commandError`. Move any listener that replies to these errors to the matching `*Denied` event. ([#298](https://github.com/wolfstar-project/stars-components/pull/298))

## `0.1.1` (2026-10-06)

### Updates

* **Dependencies** — Updated all non-major dependencies ([#253](https://github.com/wolfstar-project/stars-components/pull/253)).

## `0.1.0`

### New features

* **New package** — The utility decorators moved out of `@wolfstar/http-framework` into `@wolfstar/decorators`, mirroring the split between `@sapphire/framework` and `@sapphire/decorators`. It ships `ApplyOptions`, `RequiresGuildContext`, `RequiresDMContext`, `RequiresUserPermissions`, `RequiresClientPermissions`, `Enumerable`, `EnumerableMethod`, `createClassDecorator`, `createMethodDecorator`, `createProxy`, `createFunctionPrecondition`, and the `PieceConstructor` and `ContextFallback` types, with unchanged behaviour. ([#238](https://github.com/wolfstar-project/stars-components/pull/238))
* **Auto imports preset** — `@wolfstar/decorators` is one of the default `imports.presets` in [`@wolfstar/schema`](https://stars-components.js.org/documentation/changelog/stars-components/schema), so projects using the `stars` CLI's auto imports get the decorators without an explicit import once the package is installed.

### Updates

* **Peer dependency** — `@wolfstar/http-framework` is a peer dependency.
* **Dependencies** — Updated `@wolfstar/http-framework` to `6.0.0`.

### Migration

* **Import decorators from the new package** — `@wolfstar/http-framework` 6.0.0 no longer exports these decorators and helpers. Install `@wolfstar/decorators` and change your imports to it. The `Register*` decorators and `RestrictGuildIds` stay in the framework.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.