This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
Releases: dojo/shim
Releases · dojo/shim
Release 0.2.3
👍 Enhancements
- Typescript 2.6 (#118)
Release 0.2.2
✅ Fixes
- Replacing noEmitHelpers with importHelpers (#120)
Release 0.2.1
✅ Fixes
-
Re-adding forOf to unbreak other packages (#119)
Details
- Re-adding forOf to unbreak other packages
Release 0.2.0
Release 0.1.0
👍 Enhancements
- Update tag for @dojo dependencies
Release 2.0.0 Beta3 1
Release 2.0.0 Beta2 4
Release v2.0.0 Beta2 3
Changes
- Improve shims (#101)
- BREAKING CHANGE Aligns shim types to match more recent native types from TypeScript libraries. The biggest change is that collections now properly return an
| undefined
when getting values. This may break previously working code which may have been unsafe by not properly guarding againstundefined
. - BREAKING CHANGE The
Promise
shim is fully global. This allows easier support ofasync
/await
in code as well as makes it possible for downstream projects to target an emit of ES2015 or beyond without running into type conflicts. This does mean that a "local" promise should no longer be imported likeimport Promise from '@dojo/shim/Promise';
and only needs to be imported for side effects once by a project. Most users of other Dojo 2 packages will not have an issue with this, but if only using@dojo/shim
or only parts of@dojo/core
it may make sense to import the module for side-effects likeimport '@dojo/shim/Promise';
. Also, when targeting ES5, thelib
compiler option should be used and thees2015.promise
lib should be added. - BREAKING CHANGE the
/native/
modules have been removed, instead all the shim modules have been reworked so that they can be more easily build optimised using the features in dojo/cli-build-webpack#172. - BREAKING CHANGE the feature detection flags for the Has API have been reworked to be more concise.
- BREAKING CHANGE Aligns shim types to match more recent native types from TypeScript libraries. The biggest change is that collections now properly return an
Fixes
- Add detection for buggy MutationObserver implementations (#104)
- Internet Explorer 11 has a unreliable implementation of MutationObserver. This was being used in the async queuing library used by the Promise shim. Under certain conditions, the queue would not drain, causing Promises not to be resolved. This fix detects the buggy version and asserts that the platform does not have MutationObservers, which then defaults the async queuing library to use other mechanisms to resolve promises.
Release 2.0.0 Beta2 2
New Features
-
Forward compatible changes for TS2.4 (#98)
Refs: dojo/meta#189 -
Update to TypeScript 2.4 (#99)
Refs: dojo/meta#189