Releases: KatalysatorAB/GlimrSDK-JS
Removal of random Glimr ID cookie
Implement data collection API's
Major changes: Implement storePosition
API to allow WebSDK to further enrich your data.
The Changelog here is since the last Github release, 3.0.1:
- Implement initial enrichment api
- Implement UMD/CommonJS exports
- Add a method to synchronously fetch tags and update in backgroud
- Create major version release URL so minor upgrades are not necessary
- Use typescript type notation for README.md
Fix issue with manipulated browser history
- Fixes a bug where the same tags would always be returned even if the user navigated to other pages, when the site uses
pushState
or fragment-based paths.
Handle URLs depending on fragments
This release adds support for websites using URL fragments instead of the pathname to identify resources. This is backwards incompatible for sites actually using this, otherwise it will work exactly the same. Example:
www.example.com/#!/article/1234 // affected
www.example.com/article/1234 // not affected
This only affects sites caching URL tags locally.
Fix bug with cached tags returning malformed response
- Fixes a bug where the cached tags returned on a second page load would be completely different from the first page load
Fix a bug with callback not being called for cached tags
Minor bugfix release that fixes an issue where if you had enabled caching, the callback would not be called the second time you called Glimr.getTags
Properly detect localStorage support
This release is a minor bugfix for certain browser environments. It will fix an exception thrown in Safari in private mode.
- Fixes an exception that was thrown due to a too naive attempt at detecting
localStorage
presence
Dictionary tags
To accommodate the constantly evolving ad server landscape we need to introduce mapped tags. That is, tags mapped to predefined keys, instead of tags as an array of strings.
- Adding a second argument to the Glimr.getTags callback, which is the mapping (if present) of the array tags in the first argument
- Introduce 2 methods to serialize tags into a query string that can be used to super easily pass them forward to the ad server. Glimr.objectToQuery and Glimr.arrayToQuery. Read more in the README.md
Cache tags for synchronous fetch
Tags can now be fetched and a certain subset of tags will be pre-calculated and stored, and returned with Glimr.getCachedTags
. Currently it's based on the current URL.
Fix a couple of caching issues
Fix a couple of caching issues.