UNPKG

@ou-imdt/utils

Version:

Utility library for interactive media development

97 lines (60 loc) 4.21 kB
# CHANGELOG **CHANGELOG KEY**: `📦 NEW`, `👌 IMPROVE`, `🐛 FIX`, `📖 DOC`, `🚀 RELEASE`, `🤖 TEST`, and `‼️ BREAKING`. ### RELEASE: 0.9.0 (beta) (03/10/2025) 🚀 - 🐛 Fixed delegated attributes on host to avoid triggering (and the need to handle) subsequent mutations. ### RELEASE: 0.8.0 (beta) (10/09/2025) 🚀 - 🐛 Fixed delegateAttribute() query selectors in requestAnimationFrame() to ensure child components are rendered when querying shadowRoot. ### RELEASE: 0.7.0 (beta) (10/07/2025) 🚀 - 👌 Moved parent/child attribute delegation from ComponentBase to DelegateAttributesMixin. ### RELEASE: 0.6.0 (beta) (03/07/2025) 🚀 - 📦 Added `DelegateAttributesMixin` to delegate arbitrary attributes to inner elements. - 📦 Added `MappedStylesMixin` to map internal style names to external CSS custom properties. - 👌 Streamlined the `package.json` **exports** map so ESM / CJS entry-points resolve consistently. - 📖 Updated docs and inline comments to reflect the new mixins and the revised export map. ### RELEASE: 0.5.0 (beta) (14/05/2025) 🚀 - 🐛 Listen to slotchange on shadowRoot, set empty string default for assigned template part (TemplateEngineMixin), ensure template values have placeholders for updates (TemplateEngineModule) - 👌 Move DelegateChange to a module and wrap for the mixin - 🐛 Add optional chaining when accessing correctValues in AssessorModule - 🐛 Handle zero items in ListMixin moveToIndex - 🐛 Merge transforms within transformObject to avoid overriding concurrent transforms, allow options object to override default behaviour - 👌 Move logic for setting defaultState from constructor to setter so can be called later (for reset etc.) - 👌 Convert static [defaultState] fields to static getters to ensure new objects always returned from within - 📦 Add utils for determining Promise state ### RELEASE: 0.4.0 (beta) (09/01/2025) 🚀 - 📦 New utility `isPlainObject` - 👌 update on dragover class - 👌 Base.js: include symbol-keyed props in internal state. - 🐛 update getDevFolder to account for subdirs ### RELEASE: 0.3.0 (beta) (12/12/2024) 🚀 - 🐛 Default value set when no user specified in local development. ### RELEASE: 0.2.0 (beta) (11/11/2024) 🚀 - 👌 DraggableModule SDOM support, DispatchEventMixin retargeting and preserve hash in setUrlParams. - 👌 Added a feature to support splitting property paths. - 📦 New utility `mergeObject` - 👌 Enhanced propertyPathRegex to correctly process quoted property paths. - 👌 Adjusted transformObject to skip over undefined values during transformations. ### RELEASE: 0.1.0 (beta) (07/10/2024) 🚀 - 👌 Restructuring of utils: Moved utility functions into individual files for better organization and modularity. - 📦 Barrel index files generator: Added a generator to create barrel index files, improving the import/export structure. - 📦 Module and class migration: Classes and modules were moved from the component library to streamline the architecture. - 👌 NPM scripts update: Updated npm scripts to improve integration with the CI/CD pipeline. - 👌 VLE folder restructure: Flattened the VLE folder structure for better consistency across the codebase. - 👌 Dev folder creation: Introduced a dev folder to separate development-specific logic from production. - 📦 VleModule introduction: Added the VleModule to handle production and development logic more efficiently. ### RELEASE: 0.0.6 (beta) (21/08/2024) 🚀 - 👌 improvements on context, moving resizeIframe, getVLEResources and getFolderCallback. - 📦 subsetObject is added to object utils. - 📖 docs improvements in Readme and contributing guides. ### RELEASE: 0.0.5 (beta) (02/07/2024) 🚀 - 🐛 npmignore fix which breaks the library ### RELEASE: 0.0.4 (beta) (01/07/2024) 🚀 - 👌 Removed unused get_attachment function ### RELEASE: 0.0.3 (beta) (26/06/2024) 🚀 - 👌 npm publish improvements and BB pipeline integration <hr> ### RELEASE: 0.0.2 (beta) (20/06/2024) 🚀 - 👌 vleUtils improvements (dev, prod contexts) - 📖 Contribution guides, LICENCE, README created - 📦 Coding style with eslint, prettier <hr>