Skip to content

Commit

Permalink
chore(libcoder): Bump dependencies (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Jul 25, 2024
1 parent b07e8ff commit 77a3e0b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions packages/libcoder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.4

- chore: Updates `meta` to `^1.14.0`
- chore: Bumps min SDK to 3.4.0

## 0.0.3

- chore: Fix `repository` field in `pubspec.yaml`
Expand Down
7 changes: 4 additions & 3 deletions packages/libcoder/lib/libcoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:libcoder/src/form_data/form_data_coder.dart';
import 'package:libcoder/src/form_fields/form_fields_coder.dart';
import 'package:libcoder/src/json/json_coder.dart';
import 'package:libcoder/src/typeref.dart';
import 'package:meta/meta.dart';

export 'src/coder.dart';
export 'src/decoder.dart';
Expand All @@ -22,11 +23,11 @@ final GlobalCoder coder = GlobalCoder();

abstract mixin class GlobalCoder implements Map<Typeref, CoderConfig> {
factory GlobalCoder({
/* TODO: @mustBeConst */ Map<Typeref, CoderConfig> staticConfig,
@mustBeConst Map<Typeref, CoderConfig> staticConfig,
}) = _GlobalCoder;

const factory GlobalCoder.static(
/* TODO: @mustBeConst */ Map<Typeref, CoderConfig> config,
@mustBeConst Map<Typeref, CoderConfig> config,
) = _StaticGlobalCoder;

CoderConfig<T> configFor<T extends Object>({Typeref<T>? type});
Expand Down Expand Up @@ -62,7 +63,7 @@ final class _StaticGlobalCoder extends UnmodifiableMapBase<Typeref, CoderConfig>

final class _GlobalCoder with GlobalCoder, MapMixin<Typeref, CoderConfig> {
_GlobalCoder({
/* TODO: @mustBeConst */ Map<Typeref, CoderConfig> staticConfig = const {},
@mustBeConst Map<Typeref, CoderConfig> staticConfig = const {},
}) : _staticConfig = staticConfig {
_runtimeConfig.addAll({
const Typeref<String>(): CoderConfig.string,
Expand Down
6 changes: 3 additions & 3 deletions packages/libcoder/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: libcoder
description: A general-purpose serialization framework for Dart.
repository: https://github.com/celest-dev/dart-packages/tree/main/packages/libcoder
version: 0.0.3
version: 0.0.4-wip

environment:
sdk: ^3.3.0
sdk: ^3.4.0

dependencies:
meta: ^1.10.0
meta: ^1.14.0

dev_dependencies:
lints: ^4.0.0
Expand Down

0 comments on commit 77a3e0b

Please sign in to comment.