Skip to content

v0.4.0

Compare
Choose a tag to compare
@romainmenke romainmenke released this 04 Jan 11:10
4e85c41

Changes :

  • added support for engine targeting
const { required } = require("@mrhenry/core-web");

const featureSet = required({
	engines: {
		"Gecko": "26"
	}
});

Internal changes :

  • migrated some critical code to Typescript.
  • migrated from yarn + lerna to npm workspaces
  • added e2e tests
  • removed experimental client side detectors
  • removed dependencies that have a native node alternative.

Upgrade to v0.4.0 :

babel plugin has no API changes

@mrhenry/core-web takes a different config object now.
This was needed to enable support for engine targeting.

 const { required } = require("@mrhenry/core-web");

 const featureSet = required({
-       "Chrome": "46",
-       "Safari": "10",
+       browsers: {
+               "Chrome": "46",
+               "Safari": "10",
+       }
 });