Skip to content

Commit

Permalink
* bump UUID version constraint to support 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed Jan 29, 2024
1 parent bdbc534 commit 749b4e3
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 22 deletions.
4 changes: 4 additions & 0 deletions packages/openapi_base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.1

* bump UUID version constraint to support `4.x`

## 1.3.0

* `ResponseMap` now has a return type.
Expand Down
7 changes: 4 additions & 3 deletions packages/openapi_base/lib/src/util/uuid.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:uuid/data.dart';
import 'package:uuid/rng.dart';
import 'package:uuid/uuid.dart' as uuid;
import 'package:uuid/uuid_util.dart';

@ApiUuidJsonConverter()
class ApiUuid {
Expand All @@ -10,8 +11,8 @@ class ApiUuid {
/// Parse the given uuid. This is the reverse of [encodeToString].
ApiUuid.parse(String uuid) : this._(uuid);

static const _secureUuidGenerator =
uuid.Uuid(options: <String, dynamic>{'grng': UuidUtil.cryptoRNG});
static final _secureUuidGenerator =
uuid.Uuid(goptions: GlobalOptions(CryptoRNG()));
static final _validate = RegExp(
r'^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$',
caseSensitive: false);
Expand Down
58 changes: 41 additions & 17 deletions packages/openapi_base/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,26 @@ packages:
dependency: transitive
description:
name: dio
sha256: ce75a1b40947fea0a0e16ce73337122a86762e38b982e1ccb909daa3b9bc4197
sha256: "797e1e341c3dd2f69f2dad42564a6feff3bfb87187d05abb93b9609e6f1645c3"
url: "https://pub.dev"
source: hosted
version: "5.3.2"
version: "5.4.0"
fixnum:
dependency: transitive
description:
name: fixnum
sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
http:
dependency: "direct main"
description:
name: http
sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
url: "https://pub.dev"
source: hosted
version: "1.1.0"
version: "1.2.0"
http_parser:
dependency: transitive
description:
Expand All @@ -85,10 +93,10 @@ packages:
dependency: transitive
description:
name: intl
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
url: "https://pub.dev"
source: hosted
version: "0.18.1"
version: "0.19.0"
json_annotation:
dependency: "direct main"
description:
Expand Down Expand Up @@ -125,18 +133,18 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.16"
version: "0.12.16+1"
meta:
dependency: "direct main"
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.11.0"
open_api_forked:
dependency: "direct main"
description:
Expand All @@ -149,10 +157,10 @@ packages:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.9.0"
quiver:
dependency: transitive
description:
Expand All @@ -177,6 +185,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.10.0"
sprintf:
dependency: transitive
description:
name: sprintf
sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
url: "https://pub.dev"
source: hosted
version: "7.0.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -213,10 +229,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
url: "https://pub.dev"
source: hosted
version: "0.6.1"
version: "0.7.0"
typed_data:
dependency: transitive
description:
Expand All @@ -237,9 +253,17 @@ packages:
dependency: "direct main"
description:
name: uuid
sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313"
sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8
url: "https://pub.dev"
source: hosted
version: "4.3.3"
web:
dependency: transitive
description:
name: web
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
url: "https://pub.dev"
source: hosted
version: "3.0.7"
version: "0.4.2"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=3.2.0 <4.0.0"
4 changes: 2 additions & 2 deletions packages/openapi_base/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: openapi_base
description: Open API base implementation for client/server to be used with openapi_code_builder.
version: 1.3.0
version: 1.3.1
homepage: https://github.com/hpoul/openapi_dart/tree/master/packages/openapi_base

environment:
Expand All @@ -15,7 +15,7 @@ dependencies:
logging: ">=1.0.0 <2.0.0"
logging_appenders: ">=1.0.0 <2.0.0"

uuid: ">=3.0.1 <4.0.0"
uuid: ">=4.0.0 <5.0.0"
json_annotation: ">=4.0.0 <6.0.0"
chunked_stream: ">=1.4.1 <2.0.0"

Expand Down

0 comments on commit 749b4e3

Please sign in to comment.