Releases: S222em/hue.ts
v0.6.0
-
refactor(GroupedLight): changed .owner to ResourceIdentifier
removed(GroupedLight): .ownerIdentifier
refactor(Room): changed .children to ResourceIdentifier[]
removed(Room): .childIdentifiers
refactor(Room): changed .services to ResourceIdentifier[]
removed(Room): .serviceIdentifiers
refactor(Zone): changed .children to ResourceIdentifier[]
removed(Zone): .childIdentifiers
refactor(Zone): changed .services to ResourceIdentifier[]
removed(Zone): .serviceIdentifiers
refactor(Scene): changed .group to ResourceIdentifier
removed(Scene): .groupIdentifier
types(ResourceManager): moved function overloads to an interface
feat(BridgeHome) -
chore(deps): update andrew-chen-wang/github-wiki-action action to v4 (#50)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update dependency tslib to v2.5.1 (#49)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update dependency tslib to v2.5.2 (#51)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update dependency typedoc to v0.24.8 (#56)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update typescript-eslint monorepo to v5.59.11 (#53)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update dependency tslib to v2.5.3 (#55)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update dependency typescript to v5.1.3 (#54)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- chore(deps): update dependency eslint to v8.43.0 (#52)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
-
DevicePower & ResourceManager
feat(DevicePower)
fix(ResourceManager) overloads not recognised by webstorm -
refactor(ResourceManager): merged into Bridge
feat(Cache): better functions to retrieve resources from cache
refactor(Device): .services is now of type ResourceIdentifier[]
fix(DevicePower): add exports -
Caching & Motion
refactor(Cache): add cache managers for each resource
feat(Motion): added motion resource
Signed-off-by: S222em sem.roeten@gmail.com
- Many changes
feat(ArcheType): add support for archeTypes
refactor(Resources): move request methods to manager
feat(Room & Zone): create
fix(Ratelimit): incorrect route parsing let to breaking the limit
refactor(ApiResourceType): renamed to ResourceType
refactor(ResourceIdentifier): remove as return value e.g. .services -> .serviceIds
refactor(Light): removed DimmableLight, MirekLight, XyLight, XysLight
refactor(Light & GroupedLight & Scene): renamed xy & xys to color & gradient
feat(Scene): added action editing
refactor(Zone & Room): removeChildren and addChildren now only accept an array with id's
refactor(Manager): removed .find
And some more minor changes..
- feat(Scene): create
Signed-off-by: s222em sem.roeten@gmail.com
- refactor(Managers): move .create, .edit and .delete to respective managers
Signed-off-by: s222em sem.roeten@gmail.com
- feat(Transformers): reuse code that transforms input to API acceptable format
Signed-off-by: s222em sem.roeten@gmail.com
- refactor(API types): reorganize types
Signed-off-by: s222em sem.roeten@gmail.com
- feat(ZigbeeConnectivity): added support for zigbeeconnectivity resource
Signed-off-by: s222em sem.roeten@gmail.com
- Changes
refactor(Bridge): renamed to Hue
feat(Bridge): added support for bridge resource
feat(ZigbeeDeviceDiscovery): added support for device discovery
feat(Enums): added missing enums for options
Signed-off-by: s222em sem.roeten@gmail.com
- Changes
bump(Version): 0.6
refactor(Readme): update for latest changes
refactor(mirek): change to colorTemperature
fix(hex): fixed issue with hex parsing
Signed-off-by: s222em sem.roeten@gmail.com
Signed-off-by: s222em sem.roeten@gmail.com
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
v0.5.0
v0.4.0
- Switched Rest and SSE to undici. (note: when the SSE connection is closed there are no attempts to reconnect nodejs/undici#1142)
- Implemented more events for REST and SSE
- Routes have been reworked
- Documentation!
- Transformers are now static methods on the class itself e.g. (
lightStateTransformer()
->Light.transformState()
) - Made color transformations more accurate
v0.3.1
v0.3.0
Changes:
- The lights
light.is#()
methods now actually only check if the light is that specific type of light, solight.isColor()
will no longer check if the light is capable of displaying colors. New methods have been introduced for that cause, likelight.isCapableOfColor()
- Managers
manager.sync()
methods have been renamed tomanager.fetch()
, and can now also fetch specific resources. - Resources with an "on" state now have a method called
resource.isOn()
so there would be room for methods likeresource.on()
andresource.off()
- The bridge no longer connects automatically, so you need to call
bridge.connect()
- Added the Device resource (no docs yet, too boring)
- Lots of internal changes
- Added TSDocs (raw version)
- Actual error messages that can be worked with
- Hue bridge certificate validation (was a vulnerability)
v0.2.0
New features:
- Scene edit.
- Scene action edit.
Changes:
- Scene
apply
method now takes additional arguments, such asbrightness
. - Data received from the API is now stored in the
data
field of a resource, and not in the class itself. - Reworked manager structure.
- Removed all comments.
Breaking changes:
- Light no longer has the
applyScene
method. - Scene action no longer has the
apply
method.