web

Lightweight browser API bindings built around JS static interop.

BSD-3-CLAUSE License

Stars
128

Bot releases are hidden (Show)

web - package:web v1.0.0 Latest Release

Published by srujzs 3 months ago

  • Added supertypes' fields to dictionary constructors as dictionaries are
    allowed to contain those fields.
  • Empty dictionary constructors now create an empty object instead of being
    treated like non-object literal external constructors.
  • Generate MDN API documentation for getters.
  • Update the docs for generated interface types to reference the MDN Web Docs
    project.
  • Address several broken links in API documentation.
  • Generate APIs based on if they're on track to be a standard and not
    experimental. This is a looser restriction from the previous requirement that
    APIs need to be implemented by Chrome, Firefox, and Safari. As part of this,
    dictionaries and typedefs are only emitted if they're used by a generated API.
  • Added onUnload event stream to ElementEventGetters extension methods.
  • Expose ElementStream as a public class.
  • Require Dart ^3.4.0.
  • APIs that return a double value now return double instead of num. This is
    to avoid users accidentally downcasting num, which has different semantics
    depending on whether you compile to JS or Wasm. See issue [#57][] for more
    details.
  • Fix an issue where some union types didn't account for typedef nullability.
    [#57]: https://github.com/dart-lang/web/issues/57
web - package:web v0.5.1

Published by srujzs 8 months ago

  • Add TrustedTypes members.
  • Include MDN API documentation as class and member dartdoc comments. Docs
    sourced from the [MDN Web Docs][] project; attributions and copyright
    licensing by Mozilla Contributors is licensed under [CC-BY-SA 2.5][].
  • Add a constructor for each Element tag onto their respective Element
    interfaces.
  • Remove external Element constructors that would result in a runtime error.
  • Deprecate createAudioElement in favor of the HTMLAudioElement constructor.
    [MDN Web Docs]: https://developer.mozilla.org/en-US/docs/Web
    [CC-BY-SA 2.5]: https://creativecommons.org/licenses/by-sa/2.5/
web - package:web v0.5.0

Published by srujzs 8 months ago

  • Redeprecate APIs that were deprecated in 0.4.1 but undeprecated in 0.4.2.
  • Add support for dart fix migrations from dart:html classes to
    package:web classes.
  • Contribute a markdown file for the renamed classes from dart:html to
    package:web (see renames.md).
  • Migrate classes to use interop extension types that implement JSObject.
  • Add generics to APIs that use JSArray and JSPromise. Typedefs of a Dart
    primitive type are instead replaced with their JS type equivalent if they
    appear as a type parameter in order to conform with the type bounds of
    JSArray and JSPromise.
  • Changed record types to be JSObject instead of JSAny.
  • Reduce the number of DOM APIs we generate code for. Currently, the API needs
    to be standards-track, and be supported by Safari, Chrome, and Firefox.
  • Updated the source IDL version to 3.43.1.
  • Deprecate a few type aliases in favor of their standardized versions:
    Deprecated Preferred
    AudioElement HTMLAudioElement
    HtmlElement HTMLElement
    CanvasElement HTMLCanvasElement
    ImageElement HTMLImageElement
    VideoElement HTMLVideoElement
    CssStyleDeclaration CSSStyleDeclaration
    ContextEvent WebGLContextEvent
    WebGL WebGLRenderingContext
  • Deprecate the top-level createElementTag, createCanvasElement,
    createIFrameElement, and querySelector functions.
    Instead, use the standard creation and query methods on document.
  • Deprecate the client extension methods on MouseEvent and Touch.
    Instead, directly use the clientX and clientY properties.
  • Deprecate the HttpRequest API borrowed from dart:html.
    Consider migrating to package:http instead.
web - package:web v0.4.2

Published by srujzs 9 months ago

  • Undeprecate some APIs and helpers library that were deprecated in 0.4.1.
    Because deprecations are breaking in Flutter, they should be done in a
    breaking change
web - package:web v0.4.1

Published by devoncarew 9 months ago

  • Exported the helper libraries from web.dart.
  • Deprecated the helpers.dart library in favor of web.dart.
  • Updated the readme to include usage info and package status.
  • Added an example.
  • Added event extensions for WebSocket
  • Fixes to the return types of the append() and clone() extension methods on Node.
  • Deprecated NodeGlue.append in favor of Node.appendChild.
  • Deprecated NodeGlue.clone in favor of Node.cloneNode.
  • Updated @webref/css to 6.10.0.
web - package:web v0.3.0

Published by kevmoo about 1 year ago

  • Updated source IDL to v3.39.1.
  • Fixed a bug where typedefs were not declared with the IDL type's
    nullability.
  • Types that were aliased to double are now aliased to num. This is to make
    it easier for users to pass integer values without going through a cast and to
    make migration from dart:html easier.