diff --git a/packages/atproto/CHANGELOG.md b/packages/atproto/CHANGELOG.md index 971aff8f3..82046e656 100644 --- a/packages/atproto/CHANGELOG.md +++ b/packages/atproto/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Note +## v1.0.6 + +- chore: fix `WARNING: The annotation 'JsonSerializable.new' can only be used on classes.`. + ## v1.0.5 - Add service functions. Endpoints can be easily called as functions like `comAtprotoIdentityResolveDid` diff --git a/packages/atproto/pubspec.yaml b/packages/atproto/pubspec.yaml index bb0bc8dec..6bc8c7f84 100644 --- a/packages/atproto/pubspec.yaml +++ b/packages/atproto/pubspec.yaml @@ -1,6 +1,6 @@ name: atproto description: The most famous and powerful Dart/Flutter library for AT Protocol. -version: 1.0.5 +version: 1.0.6 homepage: https://atprotodart.com documentation: https://atprotodart.com/docs/packages/atproto repository: https://github.com/myConsciousness/atproto.dart/tree/main/packages/atproto @@ -17,7 +17,7 @@ topics: - api dependencies: - atproto_core: ^1.0.4 + atproto_core: ^1.0.5 freezed_annotation: ^3.1.0 json_annotation: ^4.9.0 diff --git a/packages/atproto_core/CHANGELOG.md b/packages/atproto_core/CHANGELOG.md index 14aa1ea87..3eb8605b8 100644 --- a/packages/atproto_core/CHANGELOG.md +++ b/packages/atproto_core/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Note +## v1.0.5 + +- chore: fix `WARNING: The annotation 'JsonSerializable.new' can only be used on classes.`. + ## v1.0.4 - chore: optimized structures. diff --git a/packages/atproto_core/lib/atproto_core.dart b/packages/atproto_core/lib/atproto_core.dart index ce9773d11..f493cfe46 100644 --- a/packages/atproto_core/lib/atproto_core.dart +++ b/packages/atproto_core/lib/atproto_core.dart @@ -10,7 +10,7 @@ export 'package:atproto_core/src/clients/challenge.dart'; export 'package:atproto_core/src/clients/service_context.dart'; export 'package:atproto_core/src/clients/jitter.dart'; export 'package:atproto_core/src/clients/retry_event.dart'; -export 'package:atproto_core/src/utils/jwt.dart'; +export 'package:atproto_core/src/types/jwt.dart'; export 'package:atproto_core/src/utils/jwt_decoder.dart' show decodeJwt; export 'package:atproto_core/src/types/session.dart'; export 'package:atproto_core/src/types/oauth_session.dart'; diff --git a/packages/atproto_core/lib/src/utils/jwt.dart b/packages/atproto_core/lib/src/types/jwt.dart similarity index 96% rename from packages/atproto_core/lib/src/utils/jwt.dart rename to packages/atproto_core/lib/src/types/jwt.dart index 6290f8ef9..31aef237a 100644 --- a/packages/atproto_core/lib/src/utils/jwt.dart +++ b/packages/atproto_core/lib/src/types/jwt.dart @@ -2,6 +2,8 @@ // All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: invalid_annotation_target + // Package imports: import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/packages/atproto_core/lib/src/utils/jwt.freezed.dart b/packages/atproto_core/lib/src/types/jwt.freezed.dart similarity index 100% rename from packages/atproto_core/lib/src/utils/jwt.freezed.dart rename to packages/atproto_core/lib/src/types/jwt.freezed.dart diff --git a/packages/atproto_core/lib/src/utils/jwt.g.dart b/packages/atproto_core/lib/src/types/jwt.g.dart similarity index 100% rename from packages/atproto_core/lib/src/utils/jwt.g.dart rename to packages/atproto_core/lib/src/types/jwt.g.dart diff --git a/packages/atproto_core/lib/src/types/oauth_session.dart b/packages/atproto_core/lib/src/types/oauth_session.dart index d684144aa..d6e07a8e3 100644 --- a/packages/atproto_core/lib/src/types/oauth_session.dart +++ b/packages/atproto_core/lib/src/types/oauth_session.dart @@ -6,8 +6,8 @@ import 'package:atproto_oauth/atproto_oauth.dart'; // Project imports: -import '../utils/jwt.dart'; import '../utils/jwt_decoder.dart'; +import 'jwt.dart'; /// Returns new [OAuthSession] based on parameters. OAuthSession restoreOAuthSession({ diff --git a/packages/atproto_core/lib/src/types/session.dart b/packages/atproto_core/lib/src/types/session.dart index 888044172..f16aa1d6c 100644 --- a/packages/atproto_core/lib/src/types/session.dart +++ b/packages/atproto_core/lib/src/types/session.dart @@ -2,12 +2,14 @@ // All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: invalid_annotation_target + // Package imports: import 'package:freezed_annotation/freezed_annotation.dart'; // Project imports: -import '../utils/jwt.dart'; import '../utils/jwt_decoder.dart'; +import 'jwt.dart'; part 'session.freezed.dart'; part 'session.g.dart'; diff --git a/packages/atproto_core/lib/src/utils/jwt_decoder.dart b/packages/atproto_core/lib/src/utils/jwt_decoder.dart index a60771f7c..e336ed4c8 100644 --- a/packages/atproto_core/lib/src/utils/jwt_decoder.dart +++ b/packages/atproto_core/lib/src/utils/jwt_decoder.dart @@ -6,7 +6,7 @@ import 'dart:convert'; // Project imports: -import 'jwt.dart'; +import '../types/jwt.dart'; /// Returns the decoded [Jwt] based on [jwt]. Jwt decodeJwt(final String jwt) { diff --git a/packages/atproto_core/pubspec.yaml b/packages/atproto_core/pubspec.yaml index 722c1c790..452ce82c4 100644 --- a/packages/atproto_core/pubspec.yaml +++ b/packages/atproto_core/pubspec.yaml @@ -1,6 +1,6 @@ name: atproto_core description: Core library for clients and tools. This package is mainly used by https://atprotodart.com packages. -version: 1.0.4 +version: 1.0.5 homepage: https://atprotodart.com documentation: https://atprotodart.com/docs/intro repository: https://github.com/myConsciousness/atproto.dart/tree/main/packages/atproto_core diff --git a/packages/bluesky/CHANGELOG.md b/packages/bluesky/CHANGELOG.md index 882d57d59..554279ac9 100644 --- a/packages/bluesky/CHANGELOG.md +++ b/packages/bluesky/CHANGELOG.md @@ -1,5 +1,10 @@ # Release Note +## v1.0.6 + +- chore: fix `WARNING: The annotation 'JsonSerializable.new' can only be used on classes.`. +- chore: fix `Links in README.md should be well formed Unable to parse 1 image link.`. + ## v1.0.5 - Add service functions. Endpoints can be easily called as functions like `appBskyFeedGetTime` diff --git a/packages/bluesky/README.md b/packages/bluesky/README.md index 3a5c34b10..d27ea8e55 100644 --- a/packages/bluesky/README.md +++ b/packages/bluesky/README.md @@ -30,7 +30,7 @@ The library is **cross-platform** and is **already used in many applications**. - ✅ **Zero Dependency** - ✅ Supports **Powerful Built-In Retry** using **[Exponential BackOff And Jitter](https://aws.amazon.com/jp/blogs/architecture/exponential-backoff-and-jitter/)** -- ✅ Supports **[All Endpoints](https://atprotodart.com/docs/supported_api#bluesky)** for [`app.bsky.*`](https://github.com/bluesky-social/atproto/tree/main/lexicons/app/bsky) and [`chat.bsky.*`]((https://github.com/bluesky-social/atproto/tree/main/lexicons/chat/bsky) ) +- ✅ Supports **[All Endpoints](https://atprotodart.com/docs/supported_api#bluesky)** for [`app.bsky.*`](https://github.com/bluesky-social/atproto/tree/main/lexicons/app/bsky) and [`chat.bsky.*`](https://github.com/bluesky-social/atproto/tree/main/lexicons/chat/bsky) - ✅ **Well Documented** and **Well Tested** - ✅ Supports **Powerful Firehose API** - ✅ Supports **Powerful Moderation API** diff --git a/packages/bluesky/lib/src/tools/utils/grouped_notification.dart b/packages/bluesky/lib/src/tools/utils/grouped_notification.dart index b933c8f08..5e36c67b8 100644 --- a/packages/bluesky/lib/src/tools/utils/grouped_notification.dart +++ b/packages/bluesky/lib/src/tools/utils/grouped_notification.dart @@ -2,6 +2,8 @@ // All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// ignore_for_file: invalid_annotation_target + // Package imports: import 'package:atproto/com_atproto_label_defs.dart'; import 'package:atproto_core/atproto_core.dart'; diff --git a/packages/bluesky/pubspec.yaml b/packages/bluesky/pubspec.yaml index da77dc694..d016cd3b4 100644 --- a/packages/bluesky/pubspec.yaml +++ b/packages/bluesky/pubspec.yaml @@ -1,6 +1,6 @@ name: bluesky description: The most famous and powerful Dart/Flutter library for Bluesky Social. -version: 1.0.5 +version: 1.0.6 homepage: https://atprotodart.com documentation: https://atprotodart.com/docs/packages/bluesky repository: https://github.com/myConsciousness/atproto.dart/tree/main/packages/bluesky @@ -17,12 +17,11 @@ topics: - api dependencies: - atproto_core: ^1.0.4 - atproto: ^1.0.5 + atproto_core: ^1.0.5 + atproto: ^1.0.6 freezed_annotation: ^3.1.0 json_annotation: ^4.9.0 characters: ^1.4.1 - nanoid: ^1.0.0 dev_dependencies: lints: ^6.0.0 diff --git a/website/docs/packages/bluesky.md b/website/docs/packages/bluesky.md index aeaff6e3f..64f2ec674 100644 --- a/website/docs/packages/bluesky.md +++ b/website/docs/packages/bluesky.md @@ -20,7 +20,7 @@ If you are having trouble implementing **RichText** in the Bluesky API, check ou - ✅ **Zero Dependency** - ✅ Supports **Powerful Built-In Retry** using **[Exponential BackOff And Jitter](https://aws.amazon.com/jp/blogs/architecture/exponential-backoff-and-jitter/)** -- ✅ Supports **[All Endpoints](https://atprotodart.com/docs/supported_api#bluesky)** for [`app.bsky.*`](https://github.com/bluesky-social/atproto/tree/main/lexicons/app/bsky) and [`chat.bsky.*`]((https://github.com/bluesky-social/atproto/tree/main/lexicons/chat/bsky) ) +- ✅ Supports **[All Endpoints](https://atprotodart.com/docs/supported_api#bluesky)** for [`app.bsky.*`](https://github.com/bluesky-social/atproto/tree/main/lexicons/app/bsky) and [`chat.bsky.*`](https://github.com/bluesky-social/atproto/tree/main/lexicons/chat/bsky) - ✅ **Well Documented** and **Well Tested** - ✅ Supports **Powerful Firehose API** - ✅ Supports **Powerful Moderation API**