p-hatan/ mirror

pub repository

mirror.p-hatan.com

convert

3.1.2

Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types.

Cached in Iran · Upstream SHA-256 matched

Download archive

Readme

Dart CI pub package package publisher

Contains encoders and decoders for converting between different data representations. It's the external counterpart of the dart:convert SDK library, and contains less-central APIs and APIs that need more flexible versioning.

Changelog

3.1.2

  • Require Dart 3.4
  • Add chunked decoding support (startChunkedConversion) for CodePage encodings.
  • Upper-cast the return type of the decoder from List<int> to Uint8List.
  • Move to dart-lang/core monorepo.

3.1.1

  • Require Dart 2.18
  • Fix a number of comment references.

3.1.0

  • Add a fixed-pattern DateTime formatter. See #210 in package:intl.

3.0.2

  • Fix bug in CodePage class. See issue #47.

3.0.1

  • Dependency clean-up.

3.0.0

  • Stable null safety release.
  • Added CodePage class for single-byte Encoding implementations.

2.1.1

  • Fixed a DDC compilation regression for consumers using the Dart 1.x SDK that was introduced in 2.1.0.

2.1.0

  • Added an IdentityCodec<T> which implements Codec<T,T> for use as default value for in functions accepting an optional Codec as parameter.

2.0.2

  • Set max SDK version to <3.0.0, and adjust other dependencies.

2.0.1

  • PercentEncoder no longer encodes digits. This follows the specified behavior.

2.0.0

Note: No new APIs have been added in 2.0.0. Packages that would use 2.0.0 as a lower bound should use 1.0.0 instead—for example, convert: ">=1.0.0 <3.0.0".

  • HexDecoder, HexEncoder, PercentDecoder, and PercentEncoder no longer extend ChunkedConverter.

1.1.1

  • Fix all strong-mode warnings.

1.1.0

  • Add AccumulatorSink, ByteAccumulatorSink, and StringAccumulatorSink classes for providing synchronous access to the output of chunked converters.

1.0.1

  • Small improvement in percent decoder efficiency.

1.0.0

  • Initial version

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add convert
pubspec.yaml
name: convert
version: 3.1.2
description: >-
  Utilities for converting between data representations.
  Provides a number of Sink, Codec, Decoder, and Encoder types.
repository: https://github.com/dart-lang/core/tree/main/pkgs/convert

environment:
  sdk: ^3.4.0

dependencies:
  typed_data: ^1.3.0

dev_dependencies:
  benchmark_harness: ^2.2.0
  dart_flutter_team_lints: ^3.0.0
  test: ^1.17.0

Version history

VersionPublishedArchiveSHA-256
1.0.02015-10-08T20:45:42.840ZCached48806cc7b70d72d8921a888f4ad46a761932c17f563e722824d65bccd60c8c90
1.0.12015-11-03T00:48:38.388ZCachedd68dc1086e7b75247ca43519706068212f0747e76079082b3e0db3cc9aa4b6cb
1.1.02016-04-22T21:20:44.837ZCached4d1602a074fbaf5c869b0aaea3d0f7cb962544f3c31df0c229f7dacbb5838d06
1.1.12016-04-27T00:13:27.881ZCachedd329a54584338685ef838e6c52c52a482b70aef78cad625567fda82f8d640d09
2.0.02016-06-03T22:29:01.923ZCachedd1adf274fab052c028c9cc7052d6fead6209945a69651e20676b8491e3c0b9d7
2.0.12016-08-08T22:14:12.311ZCached45c7a83da5d927ec0780d475a755c7bec3b38ce33308413e3729c7afc958464f
2.0.22018-07-18T20:49:18.568420ZCached1e81104947b5ef23d1088d9d7bca29c6a1790a082dd37d6cf6239f6808356c15
2.1.02018-12-17T10:58:19.426858ZCacheda764566212a76b086a6cb281601164188125bfab3a79de36bf0307bf0f1e5f36
2.1.12018-12-19T18:05:55.135108ZCached3fa83bc417e26f1d55814443a603747d48e3cdf55b2f4fea27dea8e9224dcefd
3.0.0-nullsafety.02020-11-16T21:18:38.336792ZCached7b2b88ab4d47c18d57c7ce43c88397f782bcbeaa404cdb246f03c448bcd410e9
3.0.02021-02-05T20:58:07.475788ZCacheddf567b950053d83b4dba3e8c5799c411895d146f82b2147114b666a4fd9a80dd
3.0.12021-06-24T14:40:39.553222ZCachedf08428ad63615f96a27e34221c65e1a451439b5f26030f78d790f461c686d65d
3.0.22022-05-30T11:30:00.197480ZCached196284f26f69444b7f5c50692b55ec25da86d9e500451dc09333bf2e3ad69259
3.1.02022-10-12T11:51:55.004543ZCached1be13198012c1d5bc042dc40ad1d7f16cbd522350984c0c1abf471d6d7e305c6
3.1.12022-10-12T21:53:42.729144ZCached0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592
3.1.22024-10-16T08:13:55.467117ZCachedb30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68

Dependencies

typed_data "^1.3.0"