Releases: worldoptimizer/HypeDataMagic
Releases · worldoptimizer/HypeDataMagic
Hype Data Magic v1.4.1
- Removed a leftover console.log from debugging
Hype Data Magic v1.4.0
- Fixed bug not using branches from inner elements data-magic-key definitions
- Fixed a retrieval bug by adding baseElement to findAttribute limiting the search to an element
- Fixed legacy code usage of substr in favor of slice
- Added HypeDataMagic.resolveVariables allowing to resolve variables in objects and strings (auto detected wrapper)
- Added HypeDataMagic.constructVariablesContext allowing to construct a variables context for resolving variables
- Added new default autoVariables allowing to resolve variables automatically before handlers are called
- Added legacy support for handling variables in text and image handlers
- Switched display from Data Magic to key content as suggested by @markhunte
Hype Data Magic v1.3.9
- Refactored findMagicAttribute, exposed it as findAttribute,
- Added the ability to traverse data-magic-braches further with +,
- HypeDataMagic.setData now offers to set a key on a object
Hype Data Magic v1.3.8
- Removed reactivity in favor of Hype Reactive Content and added compatibility,
- Removed createSequence, find it at https://gist.github.com/worldoptimizer/ef38b989bbe76f219c77d2aba1cd9c68
- Assigning customData is now done with assign instead of overwriting it
Hype Data Magic v1.3.7
- Reverted the observer in IDE portion (only affects preview in IDE, fixing quirks)
Hype Data Magic 1.3.6
- Added dataset variables and the handler 'dataset',
- Added data-magic-sets to enable comma separated queries for foreign datasets, parent(s) and closest()
- Added default refreshOnCustomData and reactivity to custom data,
- Exposed HypeDataMagic.enableReactiveObject (low-level) allowing to create you own reactive objects,
- Exposed HypeDataMagic.disableReactiveObject (low-level) to revert a object back to normal,
- Added HypeDataMagic.debounceByRequestFrame (helper) to create a function version that is debounced by rAF,
- Added HypeDataMagic.createSequence (helper) as a function factory for sequences progress on demand,
- Change default on all forceRedraws (Safari-Bugfix) to false, you can enable them if needed for IDE or exports only,
- Added HypeDataMagic.setDefault('highlightDataMagic', true); to allow inspecting regions managed by Data Magic,
- Added inline syntax for data-magic-key as source:key (this overrides any branch lookups),
- Added inline syntax for variables as source:key, add %{} and (sparkles-emoji){} options for variable names,
- Refactored observer in IDE portion, added plenty of comments to code
Hype Data Magic 1.3.5
- Function in data constructs are now resolved, new handler 'variables' resolves to customData,
- exposed default 'handler', to change use HypeDataMagic.setDefault('handler', 'text'),
- new default 'customData' is used to init hypeDocument.customData (in addition to old 'customDataForPreview'),
- new default 'allowDataFunctions' is set to true and allows for functions in data,
- new default 'allowVariables' is set to true and allows for variables in default handlers image and text,
- exposed low-level functions resolveVariablesInString, resolveVariablesInObject and cloneObject
Hype Data Magic 1.3.4
Ending handler with () forwards them to hypeDocument.functions, exposed resolveObjectByKey and added and exposed resolveKeyToArray (keys can now be arrays), fixed append/prepend bug
Hype Data Magic 1.3.3
Added forceRedraw (bugfix), HypeDataMagic.refresh and auto refresh (on HypeDataMagic.setData)
Hype Data Magic 1.3.2
Fixed event data bug and unloads, allow event returns