Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge package:json_rpc_2 #696

Merged
merged 137 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from 136 commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
073d78f
Create a package that implements a JSON-RPC 2.0 server.
nex3 Mar 21, 2014
29ea50b
Make the json_rpc_2 server test dart2js-compatible.
nex3 Mar 21, 2014
0ac0248
Add helper getters for URIs and date/times to json_rpc_2.
nex3 Mar 25, 2014
4a4c5ad
Fix typo in doc comment.
munificent Apr 3, 2014
43d4e29
Pass RpcException error data through if it's not a map.
munificent Apr 4, 2014
2eefb59
Release stack_trace 1.0.0.
nex3 Jun 2, 2014
719899e
Convert json_rpc.Server to take a Stream and StreamSink.
nex3 Jun 4, 2014
0dfe7ba
New, more validating, parser for URI.
lrhn Jun 16, 2014
5ac0ce8
Revert "New, more validating, parser for URI." and follow-up patches.
lrhn Jun 16, 2014
a2d024c
New Uri.parse and validation.
lrhn Jun 19, 2014
ec9f3f7
Extract out a StreamManager class from json_rpc.Server.
nex3 Jun 27, 2014
b5b3db1
Add extra information to FormatException.
lrhn Jul 14, 2014
5561e04
Remove documentation links for repo packages.
nex3 Jul 24, 2014
5bfab2f
Add a Client class to json_rpc_2.
nex3 Nov 5, 2014
713aee1
Add a Peer class to json_rpc_2.
nex3 Nov 11, 2014
ed7cead
Add gitignore, status, and codereview files.
nex3 Dec 18, 2014
3b6991d
Update the pubspec's homepage link.
nex3 Dec 18, 2014
5cf8398
Add a done getter to Client, Server, and Peer.
nex3 Jan 21, 2015
442328e
Fix a couple test timeouts.
nex3 Jan 22, 2015
c52ee94
Update the README to match the current API.
nex3 Feb 6, 2015
a6d3d2a
Upgrade to the new test runner.
nex3 Jul 16, 2015
8960a39
Add Server.isClosed and Client.isClosed.
nex3 Sep 15, 2015
bd32c69
Improve stack traces for error responses.
nex3 Sep 15, 2015
9f5ca49
Get rid of all the library tags.
nex3 Jan 13, 2016
0fc2fc4
Use StreamChannel.
nex3 Feb 2, 2016
0c69288
Fix the tests.
nex3 Feb 2, 2016
26f649e
Use web_socket_channel in the README.
nex3 Mar 9, 2016
6a37fb0
Remove unused imports in the test files
srawlins Mar 10, 2016
e0459c8
Merge pull request dart-lang/json_rpc_2#9 from srawlins/remove-unused…
nex3 Mar 10, 2016
16f0cbe
Revert "Merge pull request dart-lang/json_rpc_2#9 from srawlins/remov…
nex3 Mar 10, 2016
9d82412
Re-apply "Merge pull request dart-lang/json_rpc_2#9 from srawlins/rem…
nex3 Mar 10, 2016
d2b6da7
Fix a race condition.
nex3 Apr 14, 2016
0d6facd
Fix strong mode issues
dramos07 Aug 5, 2016
da015df
Bump the version.
nex3 Aug 9, 2016
bceca8d
Fix strong-mode warnings.
nex3 Aug 9, 2016
dfa309d
Fix strong mode errors, warnings, and hints. (dart-lang/json_rpc_2#14)
har79 Oct 28, 2016
95e5efb
Bump the version to 2.0.3. (dart-lang/json_rpc_2#15)
har79 Nov 1, 2016
362d86d
Don't leave dangling request futures. (dart-lang/json_rpc_2#19)
nex3 Feb 15, 2017
33cedf9
fix tests due to doesNotComplete matcher in package:test
grouma Jun 5, 2017
5913a05
create new version
grouma Jun 5, 2017
bcd817c
change version to dev
grouma Jun 5, 2017
0c48ce2
remove changelog entry
grouma Jun 5, 2017
9a65ab9
Merge pull request dart-lang/json_rpc_2#21 from dart-lang/fix-tests
grouma Jun 5, 2017
110e168
Use pumpEventQueue() from test (dart-lang/json_rpc_2#22)
nex3 Nov 14, 2017
70e3068
enable Travis-CI (dart-lang/json_rpc_2#23)
kevmoo Nov 15, 2017
7001221
prep for release (dart-lang/json_rpc_2#24)
grouma Jan 6, 2018
a68b6e3
Fix uses_dynamic_as_bottom error (dart-lang/json_rpc_2#25)
srawlins Jan 11, 2018
594400f
Add the method name to pending request errors (dart-lang/json_rpc_2#26)
nex3 Jan 17, 2018
c7f7a6e
Remove usage of upper-case constants.
lrhn Apr 10, 2018
52df8e6
update SDK version
lrhn Apr 10, 2018
6aad85b
update version number
lrhn Apr 10, 2018
fc90873
Update changelog
lrhn Apr 12, 2018
0de0d0b
fix changelog bullet
lrhn Apr 17, 2018
1bbb9da
remove stable from Travis config
lrhn May 4, 2018
337a1f7
Merge pull request dart-lang/json_rpc_2#27 from lrhn/remove-upper-cas…
lrhn May 22, 2018
b1fdee8
Update .gitignore to new `dart_tool` pub cache
bcko May 24, 2018
3f041c8
Fix a Dart 2 runtime error in the README (dart-lang/json_rpc_2#31)
nex3 Jun 12, 2018
fea51b4
misc: support Dart 2 stable (dart-lang/json_rpc_2#34)
kevmoo Jul 20, 2018
1d52c43
Allow stream_channel version 2.x (dart-lang/json_rpc_2#38)
natebosch Mar 27, 2019
766f864
Bump to 2.0.10 (dart-lang/json_rpc_2#39)
natebosch Mar 27, 2019
7b10b8a
Add an unhandledError callback (dart-lang/json_rpc_2#37)
dnfield Apr 23, 2019
24ada19
Merge pull request dart-lang/json_rpc_2#28 from bcko/patch-1
mit-mit Jun 19, 2019
9753017
Delete codereview.settings
kevmoo Aug 1, 2019
559c0b2
Enforce package:pedantic lints (dart-lang/json_rpc_2#41)
konstantinullrich Jan 27, 2020
1b9d2c6
Fixed issue where throwing from within an asynchronous handler (dart-…
bkonyi Apr 21, 2020
1e32ccd
remove author from pubspec
kevmoo Apr 21, 2020
1503cf1
test on oldest supported SDK (dart-lang/json_rpc_2#48)
kevmoo Apr 21, 2020
34def9a
Added `strictProtocolChecks` named parameter to `Peer` and `Server` c…
bkonyi May 18, 2020
0c05f88
Fix README for style (dart-lang/json_rpc_2#53)
natebosch Jun 1, 2020
0413c15
Fix `Peer` requests not terminating when the channel closes (dart-lan…
jiahaog Jun 8, 2020
ed40306
Prepare to publish (dart-lang/json_rpc_2#54)
natebosch Jun 8, 2020
6938a41
Add a test showing failure to close peer (dart-lang/json_rpc_2#56)
natebosch Jun 9, 2020
b8ef462
Remove some unused utils (dart-lang/json_rpc_2#59)
natebosch Jun 10, 2020
7623e2d
Reflow a doc comment to 80 characters (dart-lang/json_rpc_2#61)
natebosch Jun 10, 2020
17c480b
Refactor RespondToFormatExceptionsTransformer (dart-lang/json_rpc_2#60)
natebosch Jun 10, 2020
754590d
Give a type to the _batch list (dart-lang/json_rpc_2#62)
natebosch Jun 10, 2020
4cb5c3b
Remove ChannelManager class (dart-lang/json_rpc_2#64)
natebosch Aug 10, 2020
8b0707e
Avoid an open Peer with a closed Client (dart-lang/json_rpc_2#65)
natebosch Aug 11, 2020
f123bff
Accept responses where the ID was converted to a String (dart-lang/js…
bkonyi Sep 2, 2020
bcf95cd
Remove unused dart:async imports. (dart-lang/json_rpc_2#67)
srawlins Oct 28, 2020
e94fc36
Remove unnecessary StackTrace instantiation (dart-lang/json_rpc_2#69)
natebosch Dec 29, 2020
2f76a3a
Migrate to GitHub Actions (dart-lang/json_rpc_2#70)
athomas Feb 1, 2021
e50e7ab
Use secure links in README (dart-lang/json_rpc_2#68)
sidrao2006 Mar 24, 2021
68794da
Update LICENSE
franklinyow Apr 2, 2021
087d132
Merge pull request dart-lang/json_rpc_2#73 from dart-lang/franklinyow…
franklinyow Apr 2, 2021
5583bb2
Migrate to null safety (dart-lang/json_rpc_2#72)
hacker1024 Apr 22, 2021
180465c
Add testing on 2.12.0 (dart-lang/json_rpc_2#74)
natebosch Apr 22, 2021
61ad48a
Prepare to publish with null safety (dart-lang/json_rpc_2#75)
natebosch Apr 28, 2021
53a2c4d
Allow a `null` result (dart-lang/json_rpc_2#77)
natebosch May 1, 2021
a007907
Prepare to publish (dart-lang/json_rpc_2#78)
natebosch May 6, 2021
ffc0ee8
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE
scheglov Sep 1, 2021
f46ab03
Merge pull request dart-lang/json_rpc_2#80 from scheglov/fix-HintCode…
scheglov Sep 7, 2021
00f21c2
Update pubspec.yaml
devoncarew Apr 29, 2022
6cba962
rev to a dev version
devoncarew Apr 29, 2022
7b81ebc
Merge pull request dart-lang/json_rpc_2#82 from dart-lang/devoncarew-…
devoncarew May 2, 2022
511460c
prep for publishing 3.0.2
devoncarew Jun 15, 2022
d9c473e
address analysis issues from package:lints
devoncarew Jun 15, 2022
8200dfd
add a few more lints
devoncarew Jun 15, 2022
b72f971
test on 2.15.0
devoncarew Jun 15, 2022
7485dd7
Update pubspec.yaml
devoncarew Jun 15, 2022
47a63cd
address a lint
devoncarew Jun 15, 2022
0770659
widen the dep on package:lints
devoncarew Jun 15, 2022
c51ddc6
Merge pull request dart-lang/json_rpc_2#83 from dart-lang/prep_publish
devoncarew Jun 15, 2022
48dac85
Use a public final field (dart-lang/json_rpc_2#84)
natebosch Jun 16, 2022
37b3ff3
blast_repo fixes (dart-lang/json_rpc_2#86)
kevmoo Nov 9, 2022
75bd4ae
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/json_rpc_2#87)
dependabot[bot] Jan 3, 2023
9f468c5
blast_repo fixes (dart-lang/json_rpc_2#89)
devoncarew Jan 27, 2023
4ab54dc
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/json_rpc_2#91)
dependabot[bot] Feb 1, 2023
39e51df
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/json_rpc_2#90)
dependabot[bot] Feb 1, 2023
bdbec5f
Fix analysis, bump min SDK to 2.19 (dart-lang/json_rpc_2#93)
kevmoo Mar 28, 2023
756395c
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/json_rpc_2#95)
dependabot[bot] Apr 3, 2023
cf7c51f
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/json_rpc_2#94)
dependabot[bot] Apr 3, 2023
75f0565
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/json_rpc_2#96)
dependabot[bot] May 8, 2023
ed35045
blast_repo fixes (dart-lang/json_rpc_2#97)
devoncarew May 22, 2023
b4a0be8
blast_repo fixes (dart-lang/json_rpc_2#98)
devoncarew May 23, 2023
4e2db2e
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/json_rpc_2#99)
dependabot[bot] Jul 1, 2023
4f2b114
Fix the example to act as a server (dart-lang/json_rpc_2#100)
natebosch Jul 6, 2023
0512cd9
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/json_rpc_2#101)
dependabot[bot] Sep 1, 2023
a44c189
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/json_rpc_2#103)
dependabot[bot] Oct 1, 2023
cf6d473
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/json_rpc_2#104)
dependabot[bot] Oct 2, 2023
9be1cf2
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/json_rpc_2#106)
dependabot[bot] Nov 1, 2023
e8c4ff9
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/json_rpc_2#105)
dependabot[bot] Nov 1, 2023
e1d799f
Bump actions/stale from 8.0.0 to 9.0.0 (dart-lang/json_rpc_2#108)
dependabot[bot] Jan 1, 2024
964f524
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/json_rpc_2#109)
dependabot[bot] Feb 1, 2024
b56b1b4
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/json_rpc_2#110)
dependabot[bot] Apr 1, 2024
e4925fa
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/json_rpc_2#112)
dependabot[bot] May 1, 2024
b101b4e
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/json_rpc_2#111)
dependabot[bot] May 2, 2024
4630061
blast_repo fixes (dart-lang/json_rpc_2#113)
devoncarew May 8, 2024
5218254
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 8, 2024
fa30a8d
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
cf5aaa8
Update lints, test JS & Wasm (dart-lang/json_rpc_2#116)
kevmoo Jun 26, 2024
70b30d2
Bump the github-actions group with 2 updates (dart-lang/json_rpc_2#117)
dependabot[bot] Jul 1, 2024
2a45bcb
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 4, 2024
fb0f3cb
Merge package:json_rpc_2 into the tools monorepo
mosuem Oct 25, 2024
43e817d
Add issue template and other fixes
mosuem Oct 25, 2024
a82bab3
Moving fixes
mosuem Oct 25, 2024
a587b85
Update pkgs/json_rpc_2/analysis_options.yaml
mosuem Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/json_rpc_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:json_rpc_2"
about: "Create a bug or file a feature request against package:json_rpc_2."
labels: "package:json_rpc_2"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/graphs/**'

'package:json_rpc_2':
- changed-files:
- any-glob-to-any-file: 'pkgs/json_rpc_2/**'

'package:mime':
- changed-files:
- any-glob-to-any-file: 'pkgs/mime/**'
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/json_rpc_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: package:json_rpc_2

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/json_rpc_2.yml'
- 'pkgs/json_rpc_2/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/json_rpc_2.yml'
- 'pkgs/json_rpc_2/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/json_rpc_2/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.4, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run browser tests
run: dart test --platform chrome --compiler dart2wasm,dart2js
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ don't naturally belong to other topic monorepos (like
| [file](pkgs/file/) | A pluggable, mockable file system abstraction for Dart. | [![pub package](https://img.shields.io/pub/v/file.svg)](https://pub.dev/packages/file) |
| [file_testing](pkgs/file_testing/) | Testing utilities for package:file (published but unlisted). | [![pub package](https://img.shields.io/pub/v/file_testing.svg)](https://pub.dev/packages/file_testing) |
| [graphs](pkgs/graphs/) | Graph algorithms that operate on graphs in any representation | [![pub package](https://img.shields.io/pub/v/graphs.svg)](https://pub.dev/packages/graphs) |
| [json_rpc_2](pkgs/json_rpc_2/) | Utilities to write a client or server using the JSON-RPC 2.0 spec. | [![pub package](https://img.shields.io/pub/v/json_rpc_2.svg)](https://pub.dev/packages/json_rpc_2) |
| [mime](pkgs/mime/) | Utilities for handling media (MIME) types. | [![pub package](https://img.shields.io/pub/v/mime.svg)](https://pub.dev/packages/mime) |
| [oauth2](pkgs/oauth2/) | A client library for authenticatingand making requests via OAuth2. | [![pub package](https://img.shields.io/pub/v/oauth2.svg)](https://pub.dev/packages/oauth2) |
| [source_map_stack_trace](pkgs/source_map_stack_trace/) | A package for applying source maps to stack traces. | [![pub package](https://img.shields.io/pub/v/source_map_stack_trace.svg)](https://pub.dev/packages/source_map_stack_trace) |
Expand Down
16 changes: 16 additions & 0 deletions pkgs/json_rpc_2/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Don’t commit the following directories created by pub.
.buildlog
.dart_tool/
.pub/
build/
packages
.packages

# Or the files created by dart2js.
*.dart.js
*.js_
*.js.deps
*.js.map

# Include when developing application packages.
pubspec.lock
3 changes: 3 additions & 0 deletions pkgs/json_rpc_2/.test_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"test_package": true
}
151 changes: 151 additions & 0 deletions pkgs/json_rpc_2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
## 3.0.3

* Require Dart 3.4
* Move to `dart-lang/tools` monorepo.

## 3.0.2

* Switch to using `package:lints`.
* Address a few analysis hint violations.
* Populate the pubspec `repository` field.

## 3.0.1

* Fix a bug where a `null` result to a request caused an exception.

## 3.0.0

* Migrate to null safety.
* Accept responses even if the server converts the ID to a String.

## 2.2.2

* Fix `Peer.close()` throwing `Bad state: Future already completed`.

## 2.2.1

* Fix `Peer` requests not terminating when the underlying channel is closed.

## 2.2.0

* Added `strictProtocolChecks` named parameter to `Server` and `Peer`
constructors. Setting this parameter to false will result in the server not
rejecting requests missing the `jsonrpc` parameter.

## 2.1.1

* Fixed issue where throwing `RpcException.methodNotFound` in an asynchronous
fallback handler would not result in the next fallback being executed.
* Updated minimum SDK to Dart `2.2.0`.

## 2.1.0

* `Server` and related classes can now take an `onUnhandledError` callback to
notify callers of unhandled exceptions.

## 2.0.10

* Allow `stream_channel` version 2.x

## 2.0.8

* Updated SDK version to 2.0.0-dev.17.0

## 2.0.7

* When a `Client` is closed before a request completes, the error sent to that
request's `Future` now includes the request method to aid in debugging.

## 2.0.6

* Internal changes only.

## 2.0.5

* Internal changes only.

## 2.0.4

* `Client.sendRequest()` now throws a `StateError` if the client is closed while
the request is in-flight. This avoids dangling `Future`s that will never be
completed.

* Both `Client.sendRequest()` and `Client.sendNotification()` now throw
`StateError`s if they're called after the client is closed.

## 2.0.3

* Fix new strong-mode warnings.

## 2.0.2

* Fix all strong-mode warnings.

## 2.0.1

* Fix a race condition in which a `StateError` could be top-leveled if
`Peer.close()` was called before the underlying channel closed.

## 2.0.0

* **Breaking change:** all constructors now take a `StreamChannel` rather than a
`Stream`/`StreamSink` pair.

* `Client.sendRequest()` and `Client.sendNotification()` no longer throw
`StateError`s after the connection has been closed but before `Client.close()`
has been called.

* The various `close()` methods may now be called before their corresponding
`listen()` methods.

* The various `close()` methods now wait on the result of closing the underlying
`StreamSink`. Be aware that [in some circumstances][issue 19095]
`StreamController`s' `Sink.close()` futures may never complete.

[issue 19095]: https://github.com/dart-lang/sdk/issues/19095

## 1.2.0

* Add `Client.isClosed` and `Server.isClosed`, which make it possible to
synchronously determine whether the connection is open. In particular, this
makes it possible to reliably tell whether it's safe to call
`Client.sendRequest`.

* Fix a race condition in `Server` where a `StateError` could be thrown if the
connection was closed in the middle of handling a request.

* Improve stack traces for error responses.

## 1.1.1

* Update the README to match the current API.

## 1.1.0

* Add a `done` getter to `Client`, `Server`, and `Peer`.

## 1.0.0

* Add a `Client` class for communicating with external JSON-RPC 2.0 servers.

* Add a `Peer` class that's both a `Client` and a `Server`.

## 0.1.0

* Remove `Server.handleRequest()` and `Server.parseRequest()`. Instead, `new
Server()` takes a `Stream` and a `StreamSink` and uses those behind-the-scenes
for its communication.

* Add `Server.listen()`, which causes the server to begin listening to the
underlying request stream.

* Add `Server.close()`, which closes the underlying request stream and response
sink.

## 0.0.2+3

* Widen the version constraint for `stack_trace`.

## 0.0.2+2

* Fix error response to include data from `RpcException` when not a map.
27 changes: 27 additions & 0 deletions pkgs/json_rpc_2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2014, the Dart project authors.

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 LLC 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.
Loading
Loading