Skip to content

Releases: MoOx/caniuse-api

4.0.0

02 Jun 19:25
9a2a431

Choose a tag to compare

Two correctness fixes for isSupported(). Both change the boolean returned in
some cases, hence the major bump.

The public API itself is unchanged.

  • Fixed: features flagged with a caniuse note are no longer reported as
    unsupported. caniuse stores full support as y, sometimes followed by a note
    (y #2) or a flag (y x); we now only check the leading support indicator
    instead of matching the whole value.
    (#82
    via #90
    by @underbyte)
    • e.g. isSupported("es6", "chrome 74") now returns true (was false).
  • Fixed: an unknown browser version is now reported as unsupported instead of
    supported. A query resolving to no known browser (e.g. safari 12.0.2)
    previously returned true because of a vacuously-true [].every(…); it now
    returns false. (#83
    via #90
    by @underbyte)
    • e.g. isSupported("intersectionobserver", "safari 12.0.2") now returns
      false (was true).
    • isSupported still throws on a malformed query ("not a real browser")
      and on an unknown feature name, as before.
  • Added: built-in TypeScript type declarations. The package is now written in
    TypeScript and ships its own .d.ts, so @types/caniuse-api is no longer
    needed.
    By @MoOx.
  • Changed: internal rewrite, no runtime behaviour change. The previous build
    step was replaced by tsc (sources run natively under modern Node and are
    compiled to CommonJS for publishing), and the lodash.memoize / lodash.uniq
    dependencies were inlined — two fewer runtime dependencies.
    By @MoOx.

Note for tooling authors (e.g. cssnano / postcss-merge-rules): more features
are now considered supported than before, which can change generated output.
The new behaviour matches caniuse.com (dark green = supported).

3.0.0

10 Jul 15:24

Choose a tag to compare

  • Upgraded: browserslist

2.0.0

03 May 09:12

Choose a tag to compare

  • Changed: we now use caniuse-lite instead if caniuse-db
    (#59)

1.6.1

07 Apr 07:44

Choose a tag to compare

  • Added: export the feature list
    (#48)

1.5.3

01 Feb 07:22

Choose a tag to compare

1.5.2

05 Sep 07:12

Choose a tag to compare

1.5.1

06 Aug 05:53

Choose a tag to compare

  • Fixed: Do not fail when browserslist gives a browser that caniuse-api doesn't
    know about
    (#45 - @onigoetz)

1.5.0

06 Aug 05:55

Choose a tag to compare

  • Added: JSPM support with explicit file extensions (#40 - @Nyalab)

1.4.1

18 Oct 19:09

Choose a tag to compare

  • Fixed: generator.js was missing

1.4.0

18 Oct 18:40

Choose a tag to compare

  • Upgraded: browserlist 1.x
  • Upgraded: shelljs 0.5.x
  • Added: output to notify if generation has been made or not
    (related to #25)