Skip to content

Commit

Permalink
New version 2.0.0 with null safety and major breaking changes (in bro…
Browse files Browse the repository at this point in the history
…wser controller API).
  • Loading branch information
terrier989 committed Mar 15, 2021
1 parent 7ae9921 commit 0a72283
Show file tree
Hide file tree
Showing 174 changed files with 9,352 additions and 11,612 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v1

- name: Install dependencies
run: pub get
run: dart pub get

- name: Run tests
run: pub run test --platform vm
run: dart test --platform vm
21 changes: 18 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,32 @@

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
universal_html/.packages
.packages
.pub-cache/
.pub/
pubspec.lock
build/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# Generated by 'tool/generate_api_list.dart'
API_LIST.md

# Generated by 'tool/publish.sh'
published/
published/
56 changes: 0 additions & 56 deletions .packages

This file was deleted.

9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 2.0.0
* Migrated to null safety and the latest version of dart:html.
* BREAKING CHANGES: The API for controlling browser windows has been revamped.
It's easier to work with than the earlier one.
* BREAKING CHANGES: Removed "package:universal_html/prefer_universal/X.dart" and
"package:universal_html/prefer_sdk/X.dart". Developers should import
"package:universal_html/html.dart".
* Some refactoring.

## 1.2.4
* Fixes dependency constraints.

Expand Down
19 changes: 19 additions & 0 deletions DIFFERENCES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
32711 APIs in "dart:html"
29955 APIs in "package:universal_html/html.dart"

# Missing APIs
* AbsoluteOrientationSensor (class)
* Accelerometer (class)
* AccessibleNodeList.length=
* AmbientLightSensor (class)
* AnchorElement.created
* Animation.currentTime
Expand Down Expand Up @@ -111,6 +115,8 @@
* CompositionEvent.detail
* CompositionEvent.sourceCapabilities
* CompositionEvent.view
* Console.countReset(...)
* Console.timeLog(...)
* ContentElement.created
* CredentialUserData (class)
* Css (class)
Expand Down Expand Up @@ -368,6 +374,7 @@
* Magnetometer (class)
* MapElement.areas
* MapElement.created
* MediaDevices.getUserMedia(...)
* MediaElement.audioDecodedByteCount
* MediaElement.audioTracks
* MediaElement.buffered
Expand Down Expand Up @@ -614,8 +621,10 @@
* RtcPeerConnection.generateCertificate(...)
* RtcPeerConnection.negotiationNeededEvent
* RtcPeerConnection.onNegotiationNeeded
* RtcPeerConnection.onTrack
* RtcPeerConnection.signalingState
* RtcPeerConnection.supported
* RtcPeerConnection.trackEvent
* RtcPeerConnectionIceEvent.candidate
* RtcRtpContributingSource (class)
* RtcRtpReceiver.getContributingSources(...)
Expand Down Expand Up @@ -703,6 +712,12 @@
* SpeechRecognitionError (class)
* SpeechRecognitionEvent (class)
* SpeechRecognitionResult (class)
* SpeechSynthesisUtterance.lang=
* SpeechSynthesisUtterance.pitch=
* SpeechSynthesisUtterance.rate=
* SpeechSynthesisUtterance.text=
* SpeechSynthesisUtterance.voice=
* SpeechSynthesisUtterance.volume=
* StaticRange (class)
* StyleElement.created
* StyleElement.media
Expand Down Expand Up @@ -849,6 +864,7 @@
* VideoTrackList (class)
* VttCue (class)
* VttRegion (class)
* WeekInputElement.valueAsDate=
* Window.cancelAnimationFrame(...)
* Window.defaultStatus=
* Window.defaultstatus=
Expand All @@ -867,4 +883,7 @@
* XmlDocument.elementsFromPoint(...)
* XmlDocument.fonts
* XmlDocument.getAnimations(...)
* document
* promiseToFutureAsMap
* querySelector
* querySelectorAll
69 changes: 69 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,72 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

----------------------------------------------------------------------------------------------------

This version of "universal_html" contains source code from the Dart package "csslib", which was
obtained from:
https://github.com/dart-lang/csslib

When the source code was obtained, the original source code had the following license:

Copyright 2013, the Dart project authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

----------------------------------------------------------------------------------------------------

This version of "universal_html" contains source code from the Dart package "html", which was
obtained copied from:
https://github.com/dart-lang/html

When the source code was obtained, the original source code had the following license:

Copyright (c) 2006-2012 The Authors

Contributors:
James Graham - jg307@cam.ac.uk
Anne van Kesteren - annevankesteren@gmail.com
Lachlan Hunt - lachlan.hunt@lachy.id.au
Matt McDonald - kanashii@kanashii.ca
Sam Ruby - rubys@intertwingly.net
Ian Hickson (Google) - ian@hixie.ch
Thomas Broyer - t.broyer@ltgt.net
Jacques Distler - distler@golem.ph.utexas.edu
Henri Sivonen - hsivonen@iki.fi
Adam Barth - abarth@webkit.org
Eric Seidel - eric@webkit.org
The Mozilla Foundation (contributions from Henri Sivonen since 2008)
David Flanagan (Mozilla) - dflanagan@mozilla.com
Google Inc. (contributed the Dart port) - misc@dartlang.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

----------------------------------------------------------------------------------------------------
Loading

0 comments on commit 0a72283

Please sign in to comment.