Commit Graph

31 Commits

Author SHA1 Message Date
Nate Bosch d82e2b2e44 Prepare to publish js and meta for null safety
Change-Id: Iecbe288b989e6053d1a1bd9372795b70e6ba05d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182360
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2021-02-02 21:33:17 +00:00
Nate Bosch 7784843910 Bump SDK constraints in js for pub
Use a 2.12.0 lower bound since pub does not understand allowed
experiments for earlier versions.

Use a 3.0.0 upper bound to avoid a warning in pub and to give some
flexibility in publishing for stable.

Change-Id: I482e89becc7aa9f1a36298701ade70cbcc39702c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/170204
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2020-11-03 21:28:47 +00:00
Jacob MacDonald af5501c232 allow 2.12 prerelease sdks for meta and js
Change-Id: I4406a3c95993e2c8db4df3932a989f24f6a6ac05
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169020
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2020-10-23 17:49:24 +00:00
Nate Bosch ccbde0c211 Prepare package:js for the 2.11 dev SDKs
Bump the upper bound to allow 2.10 stable and 2.11.0 dev SDK versions.

Change-Id: I6494e862bde9ce253144b0f82bd121604ab49f94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/163730
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2020-09-22 01:17:27 +00:00
Jacob MacDonald 146ad014d9 update js/meta for the 2.10 dev sdk
- bumps the meta version so it can be published
- updates sdk constraints to be consistent with all other packages (should have been equivalent anyways)

Change-Id: I83520d291625f13b0029e28aecb9714f365a75b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155460
Reviewed-by: William Hesse <whesse@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
2020-07-22 15:28:34 +00:00
William Hesse f88ce7aef5 Increase Dart version to 2.10
Change-Id: Ic6b556f935602834564aca24690608aa624efa43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155440
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-22 13:22:07 +00:00
Jacob MacDonald e780b31f73 prep package:js for null safety release
Change-Id: Ie4ce3d83d4dfc60ff5728152e9b391a84c50e6b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153824
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Auto-Submit: Jake Macdonald <jakemac@google.com>
2020-07-09 19:29:03 +00:00
Kevin Moore 073cbcc5a4 [pkg:js] Enable pedantic lints
Change-Id: Ia03a68431d3e62f2b5db45d3c38fb99f5ab07ca6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151540
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2020-06-17 16:35:56 +00:00
Jacob MacDonald e7218354a8 add all flutter/flutter_test/test isolate deps to the allow list
I also had to migrate package:js to nnbd as a part of this

Bug:https://github.com/dart-lang/sdk/issues/42274
Change-Id: Ia0223e013d2afb464c05eba71783827cf1fb4781
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151400
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
2020-06-17 04:58:30 +00:00
Nate Bosch 6a1113d864 Prepare to publish package:js
Make some improvements to bump up the pana score on the pub site.

- Make the package description a bit longer.
- Remove some unnecessary `new` and `const`.

Remove the reference to null safety. Drop the min SDK back to 2.0.0
After publish I will restore this. The SDK package config is unchanged
so this shouldn't impact whether tests can run with strong null safety.

Change-Id: I29d41914b1d9c4273fc6334d700be450d22616ed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150468
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-08 22:24:54 +00:00
Nate Bosch 3b6ca27b41 Collapse package:js changelog
We haven't published any of the recent changes to `package:js`, revert
back to the version just after the latest published.

Remove the changelog entry referring to `promiseToFuture`. This was a change in
the SDK libraries and is not associated with any single version of `package:js`.

Remove the author field from the pubspec, it is unused.

Expand the pubspec description.

Change-Id: Id2a37a7c947656a6f5ff4dd577d0e7d32e8e0b61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148188
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2020-05-16 01:53:22 +00:00
Robert Nystrom 554f03a52e Opt package:js in to null safety.
This fixes the dart2js strong tests that are currently failing because
any test importing this library was treated as a mixed mode test.

Change-Id: Id856c9d96dd4253601facdb5db3926dbe636c209
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148280
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2020-05-16 00:41:22 +00:00
Derek Xu 6d28f59c54 Added promiseToFuture function to js_util.dart
Change-Id: I1bfd3fadb0a212ec0ff150cad02bdf285e2e7edb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122240
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Derek Xu <derekx@google.com>
2019-11-04 22:56:45 +00:00
Nate Bosch ec160b74dc Start cleaning up docs in package:js
- Remove some unnecessary details in the README. The SDK constraint
  duplicates the pubspec, the dependencies section duplicates automatic
  info on the pub site, and the contributing section duplicates generate
  Dart/SDK contributing information. The issue link is still useful
  since it fills in a template, but we should update it to include a
  label by default.
- Use "JavaScript" consistently in docs.
- Rephrase some doc comments for clarity.
- Drop `new` from examples.
- Use consistent single quotes in examples.
- Always show the `@JS()` annotation on `library` in examples.
- Move the note about factory constructors for anonymous classes to the
  annotation from the README.
- Bump the mimimum SDK to`2.0.0` since there isn't utility in claiming
  support for older SDKs.

There are stale docs remaining in the `varargs.dart` library that should
be handled separately by deleting that library.

Change-Id: Ida51d2ec3fd31210b55dc91042a0ac1cf77210b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107450
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2019-06-27 21:36:54 +00:00
Kevin Moore fa629d83d8 pkg/js: fix pubspec author
Change-Id: I4ef5d232c5ca6e80f9df0f8a329d83a13aaa3be5
Reviewed-on: https://dart-review.googlesource.com/65603
Reviewed-by: Kevin Moore <kevmoo@google.com>
2018-07-18 21:36:10 +00:00
Kevin Moore af613c7479 pkg/js: support Dart <3.0.0
Change-Id: Ifc625e6dd33e48e7f446b7d7f19b7c14febd0e52
Reviewed-on: https://dart-review.googlesource.com/65600
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2018-07-18 21:30:42 +00:00
Jacob Richman bacd980554 Fix sdk version constraint for pkg:js 0.6.1
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/2175423004 .
2016-07-25 14:49:13 -07:00
Jacob Richman 96ca5db7e5 Add JSNative utility class with static methods methods to efficiently manipulate typed JSInterop objects in cases where the member name is not known statically. These methods would be extension methods on JSObject if Dart supported extension methods. Update package js to export these methods. Implement in Dart2JS. Implement JS$ in dart2js.
BUG=
R=alanknight@google.com, sra@google.com

Review URL: https://codereview.chromium.org/2150313003 .
2016-07-25 09:59:01 -07:00
Kevin Moore 3d43d6d51c pkg/js: prepare for 0.6.0 release
R=sigmund@google.com

Review URL: https://codereview.chromium.org/1456223002 .
2015-11-18 15:34:54 -08:00
Kevin Moore 87fc010974 pkg/js: moved example code to https://github.com/google/chartjs.dart/
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1449053004 .
2015-11-17 11:11:07 -08:00
Kevin Moore e7e012e386 fix readme for pkg/js and prepare another release
Update SDK changelog to mention improved JS interop

R=jacobr@google.com

Review URL: https://codereview.chromium.org/1438003002 .
2015-11-11 12:19:43 -08:00
Kevin Moore 928e30586e update pkg/js for changes is 1.13-dev.7.7
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1421513006 .
2015-11-04 14:39:24 -08:00
Jacob Richman e0d2263bb3 Add @anonymous annotation and restrict object literal constructors to only anonymous classes. This frees up defining factory constructors that do not correspond to object literals on JS interop classes.
BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org/1409033005 .
2015-10-29 19:18:19 -07:00
Jacob Richman eab2ef5d82 Rev pkg js version
BUG=
R=ochafik@google.com

Review URL: https://codereview.chromium.org/1425823003 .
2015-10-29 10:33:16 -07:00
Kevin Moore b74ce18b0c pkg/js: update version, example, and SDK constraint for annotation change
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1417963002 .
2015-10-21 09:58:30 -07:00
Kevin Moore e32d7d7029 pkg/js: add link to example
Review URL: https://codereview.chromium.org/1406093002 .
2015-10-15 16:33:05 -07:00
Kevin Moore 045325b32e pkg/js: improved readme, added example
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1411503002 .
2015-10-15 14:51:35 -07:00
Kevin Moore 9e8c868c3b Big cleanup to README. Added CHANGELOG.
R=jacobr@google.com

Review URL: https://codereview.chromium.org/1404873004 .
2015-10-15 10:46:58 -07:00
Jacob Richman 6dd851e2a4 Update version number in pkg/js pubspec in preparation for publishing the package.
BUG=
R=kevmoo@google.com

Review URL: https://codereview.chromium.org/1405653002 .
2015-10-15 09:40:50 -07:00
Jacob Richman ff3309993c Fix version constraint so that package:js is fine to use with prerelease versions of the SDK
BUG=
R=nweiz@google.com

Review URL: https://codereview.chromium.org/1398973006 .
2015-10-13 14:32:15 -07:00
Jacob Richman cd2752431e Support user generated custom native JS classes.
BUG=
R=jmesserly@google.com, sra@google.com

Review URL: https://codereview.chromium.org//1318043005 .
2015-10-13 13:15:28 -07:00