{"id":18994920,"url":"https://github.com/wevre/transit-dart","last_synced_at":"2025-09-06T06:31:50.823Z","repository":{"id":147180382,"uuid":"612728848","full_name":"wevre/transit-dart","owner":"wevre","description":"Transit for Dart","archived":false,"fork":false,"pushed_at":"2023-11-15T15:08:27.000Z","size":468,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-08T17:41:01.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wevre.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-11T19:57:22.000Z","updated_at":"2024-01-07T17:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b9f1a19-c0a7-49a8-a3c0-7868cb7e59ea","html_url":"https://github.com/wevre/transit-dart","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2Ftransit-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2Ftransit-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2Ftransit-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wevre%2Ftransit-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wevre","download_url":"https://codeload.github.com/wevre/transit-dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232098370,"owners_count":18472318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T17:27:35.984Z","updated_at":"2025-09-06T06:31:50.812Z","avatar_url":"https://github.com/wevre.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# transit-dart\n\nTransit is a data format and set of libraries for conveying values between\napplications written in different languages. This library provides support for\nmarshalling Transit data to/from Dart.\n\n* [Transit Rationale](https://blog.cognitect.com/blog/2014/7/22/transit)\n* [Transit Specification](https://github.com/cognitect/transit-format)\n* [transit-dart API docs](https://pub.dev/documentation/transit_dart/latest/)\n\nThis implementation's major.minor version number corresponds to the version of\nthe Transit specification it supports.\n\n_NOTE: Transit is intended primarily as a wire protocol for transferring data\nbetween applications. If storing Transit data durably, readers and writers are\nexpected to use the same version of Transit and you are responsible for\nmigrating/transforming/re-storing that data when and if the transit format\nchanges._\n\n## Releases and Dependency Information\n\n* Latest release: 0.8.117 \u003c!--TRANSIT_DART_VERSION--\u003e\n\n## Getting started\n\n```\ndart pub add transit_dart\n```\n\nThen in your Dart code, you can use:\n\n```dart\nimport 'package:transit_dart/transit_dart.dart';\n```\n\nSee [Installing](https://pub.dev/packages/transit_dart/install).\n\n## Usage\n\nSee [Example](https://pub.dev/packages/transit_dart/example)\n\n## Default Type Mapping\n\nWe don't support the full list of types that one would find in, say, the java or\nclj implemenation of transit. In spite of that limitation, everything will round\ntrip (which is why transit-dart can pass the transit-format test suite) and any\nmissing types can be implemented as custom read/write handlers, or by\nconstructing a TaggedValue.\n\n|Transit Type   |Write accepts           |Read produces           |\n|------         |------                  |------                  |\n|null           |null                    |null                    |\n|string         |String                  |String                  |\n|boolean        |bool                    |bool                    |\n|integer        |int                     |int                     |\n|decimal        |double                  |double                  |\n|bytes          |Uint8List               |Uint8List               |\n|time           |DateTime                |DateTime                |\n|uri            |Uri                     |Uri                     |\n|special numbers|double.nan, double.infinity, double.negativeInfinity|double.nan, double.infinity, double.negativeInfinity|\n|array          |List                    |List                    |\n|map            |Map                     |Map                     |\n|set            |Set                     |Set                     |\n\n## Testing\n\nTo run the roundtrip verification tests in `transit-format`, first ensure\nDart\u003e=2.19.1 and Java 8 are installed, then do the following:\n\n1. Set up a testing directory where `transit-format` and `transit-dart` can be\n   cloned side-by-side. We have a fork of `transit-format` that has support for\n   testing `transit-dart` all ready to go. Clone this to your test folder.\n\n```sh\nmkdir transit-test\ncd transit-test\ngit clone https://github.com/wevre/transit-format.git\n# Do something similar to the following to ensure Java 8.\njenv local 1.8\n```\n\n2. From the `transit-format` folder, run the verify command.\n\n```sh\nbin/verify -impls dart\n```\n\n## Additional information\n\nComing soon, more info about the package: where to find more information, how to\ncontribute to the package, how to file issues, what response they can expect\nfrom the package authors, and more.\n\n## Copyright and License\n\nCopyright © 2023 Michael J. Weaver\n\nThis library is a Dart port of the Java version created and maintained by\nCognitect.\n\nCopyright © 2014 Cognitect\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at https://www.apache.org/licenses/LICENSE-2.0. Unless required by\napplicable law or agreed to in writing, software distributed under the License\nis distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwevre%2Ftransit-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwevre%2Ftransit-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwevre%2Ftransit-dart/lists"}