All notable changes to this project will be documented in this file.
4.3.1 - (2024-07-01)
4.3.0 - (2024-06-30)
- container: Fix incorrect function name in tsdoc (d58e5d5)
4.2.2 - (2024-01-19)
- Update transitive sapphire dependencies (78d8198)
- Fixed commonjs typings export mapping (#377) (b115413)
- Make virtual pieces respect name restrictions like normal pieces (#374) (fcca114)
4.2.1 - (2024-01-12)
- Add deno to the filters for loading TS files (#373) (6ba9dc5)
- deps: Update all non-major dependencies (0c68396)
4.2.0 - (2023-12-27)
- RootScan: Ensure RootScan also scans
module
fields in package.json (#369) (7eb28a9)
4.1.0 - (2023-12-09)
- Bun (#359) (2f862f4)
4.0.2 - (2023-12-05)
- Properly package all files in dist for npm (2faab8a)
4.0.1 - (2023-12-05)
- Bump transitive dependencies (1da0283)
4.0.0 - (2023-12-04)
- Move
walk
toILoaderStrategy
(#352) (540ac88)
- Properly split CJS and ESM (41e8cec)
- 💥 BREAKING CHANGE: This ensures that Pieces will properly load the files from the appropiate folder and we properly bundle CJS and ESM. To use this version of @sapphire/pieces you have to use @sapphire/framework v5.x or higher, or update your own usage of @sapphire/pieces to also properly split ESM and CJS.
3.10.0 - (2023-11-16)
- Rename
Piece.Context
toPiece.LoaderContext
(#351) (f5bb225)
- Use
StoreName
for improved type experience (#350) (3c722ef) - StoreRegistry: Add
StoreOf
andPieceOf
(#349) (7b0ae1d)
3.9.0 - (2023-11-15)
- Revert 12be6ba006d549ba2250546b4fb3c35a9e5d25f2 "add symbol support for piece names (#346)" (9424c20)
3.8.0 - (2023-11-15)
- AliasStore: Pass
StoreName
type parameter toStore
(#347) (9a3492c)
- Add symbol support for piece names (#346) (12be6ba)
- StoreRegistry: Add queue and virtual file support (#344) (b7c0839)
3.7.1 - (2023-11-13)
- LoaderStrategy: Overload empty methods for extensions (#345) (2a971d8)
- deps: Update all non-major dependencies (#325) (df91def)
- deps: Update all non-major dependencies (#321) (9106543)
3.7.0 - (2023-07-21)
- Update sapphire utilities to v3.13.0 (21e9e6d)
- Resolve issue with class extends utility (#314) (1501fc1)
- deps: Update all non-major dependencies (#303) (cb6ddde)
- Omit files starting with
_
from loading (#289) (b8a2688)
3.6.2 - (2023-04-10)
3.6.1 - (2023-03-17)
- LoaderError: Changed
LoaderErrorType
fromconst enum
to justenum
(7e23deb) - deps: Update all non-major dependencies (#276) (5b3b7b6)
3.6.0 - (2022-10-31)
- deps: Update all non-major dependencies (#257) (cd043b8)
- deps: Update dependency @sapphire/utilities to ^3.11.0 (#258) (ab31a5e)
- Add qyurila as a contributor for code (#271) (4a30034)
- Support loading ESModule TS files when using ts-node (#270) (bf58baa)
3.5.2 - (2022-10-02)
- Update @sapphire/utilities dependency (e326143)
- deps: Update dependency @sapphire/utilities to ^3.9.3 (#243) (0315d4e)
- Add RealShadowNova as a contributor for tool (#239) (44e767d)
3.5.1 - (2022-08-20)
- Add @leonardssh as a contributor (65787a1)
3.5.0 - (2022-08-05)
- esm: Add more qs parameters (#232) (5c44377)
3.4.1 - (2022-08-04)
- deps: Update dependency @sapphire/utilities to ^3.9.0 (41bc4a9)
3.4.0 - (2022-08-04)
- store: Support abstract classes (#230) (f83a05d)
- deps: Update dependency @sapphire/utilities to ^3.8.0 (#229) (388cc37)
- deps: Update all non-major dependencies (#228) (ca39767)
- Add URL support for register methods (#231) (3d2d1be)
3.3.5 - (2022-07-24)
- Fixed imports of discordjs/colletion to resolve type issues (cfc8a5c)
- deps: Update dependency @sapphire/utilities to ^3.7.0 (#219) (488afd3)
3.3.3 - (2022-05-15)
- Stricter types (f9be533)
- deps: Update all non-major dependencies (#190) (299ffa9)
3.3.1 (2022-04-01)
- bump sapphire utilities dependency (a36c8c8)
3.3.0 (2022-03-06)
- deps: update all non-major dependencies (#151) (ef9c11f)
- deps: update all non-major dependencies (#161) (b69734d)
3.2.0 (2021-11-21)
3.1.1 (2021-11-06)
- deps: update all non-major dependencies (#132) (7b19018)
- deps: update dependency @sapphire/utilities to ^3.0.6 (#131) (b0b1bea)
3.1.0 (2021-10-17)
- allow more node & npm versions in engines field (8ce9b52)
- filter
.d.ts
files from default loader strategy (#128) (0a7c4ac)
3.0.1 (2021-10-04)
- change
Awaited
toAwaitable
(f1f9c1b) - resolve incorrect ESM bundle exports (44f6b5f)
- set dependencies to latest versions (e34af9f)
3.0.0 (2021-09-09)
- Changed
Store#load
to takeroot
andpath
- Make
ILoaderStrategy#load
takeHydratedModuleData
- Remove
Piece#path
, use#location
instead
- AliasPiece: strict type
toJSON()
(4aead0d) - ILoaderStrategy: Added
HydratedModuleData
type (8ea5303) - Piece: added
location
property, containing the file's metadata (27a5488) - Piece: strict type
toJSON()
(6f9f0a6) - added
PieceLocation
(e1c1ff9) - update to V3 (7dc4b70)
- ts-node-dev-support: check if env variable is set (#102) (4d8bbc8)
2.2.0 (2021-08-26)
2.1.0 (2021-06-19)
- types: remove Constructor, Awaited, Ctor and Arr types - use @sapphire/utilities instead (#84) (538dbb5)
- added StoreRegistry (#76) (b9f7198)
2.0.0 (2021-05-08)
-
Renamed
PieceContextExtras
toContainer
, usage and augmentation is the same. -
Removed
Store.injectedContext
, use globally exportedcontainer
variable instead. -
Renamed
Store#context
toStore#container
. -
Renamed
Piece#context
toPiece#container
. -
minor naming changes for consistency with ecosystem (40f85d6)
1.2.5 (2021-05-02)
- drop the
www.
from the SapphireJS URL (e87e50e) - update all the SapphireJS URLs from
.com
to.dev
(0a9c1b3)
1.2.4 (2021-04-21)
- change all Sapphire URLs from "project"->"community" & use our domain where applicable 👨🌾🚜 (#69) (fc55625)
1.2.3 (2021-03-16)
1.2.2 (2021-02-12)
- docs: tsdoc has been improved (c9ee146)
1.2.1 (2021-01-30)
1.2.0 (2021-01-21)
1.1.0 (2021-01-08)
1.0.1 (2020-12-28)
- loader: compare constructors instead of prototypes (#40) (807cf6a)
- store: call unload when onLoad disables the piece (#39) (4bb9be0)
- added ILoaderStrategy#onLoadAll, renamed onPostLoad to onLoad (#37) (8c725d8)
- added smarter root and type detection (#38) (3492c60)
- export RootScan (c4e909b)
- output type declerations to a single .d.ts file (#30) (f76f0b5)
- piece: rename disable to unload, add reload (#36) (f0eec9c)
- add Piece#{onLoad,onUnload} (f0627cc)
- add Piece#disable (bc8aa03)
- export AliasPiece and AliasStore in index (4522412)
- first version of the loader (9f27f77)
- more descriptive error message (#14) (51d1b52)
- pieces v2! (#29) (792d68a)
- piece: add disable() method (ca0ef2e)
- store: add Store#name (13f2eee)
- store: make walk not error no ENOENT (ef7ced5)
- add Piece#toJSON (e902a04)
- added MissingExportsError (7234df4)
- more types, more docs, better API (51033e0)
- make Store#{load,insert} atomic (9700c4e)
- make Store#load easier to use (69d52c5)
- removed testing and coverage (4cba117)
- specify return type for Piece#toJSON (4fe4892)
- sub directory loading (#1) (b0b227c)
- use name instead of path in Store#construct (c2dd9ce)
- use pathToFileURL instead of new URL (96c3e9c)
- use the actual path (94e0844)
- alias-store: resolved build error (e121f3b)
- piece: receive name via PieceContext for better defaults (b062c58)
- store: resolved build error for node.js 12 (849a184)