diff --git a/MIGRATION.md b/MIGRATION.md index 5f9230ff..3693391b 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -2,7 +2,7 @@ ## 1.6.0 > 1.7.0 -* Change `import 'package:parchment/convert.dart';` to `import 'package:parchment/codec.dart';` +* Change `import 'package:parchment/convert.dart';` to `import 'package:parchment/codecs.dart';` * Change `parchmentMarkdown.encode(delta);` to `parchmentMarkdown.encode(ParchmentDocument.fromDelta(delta));` * Change `parchmentMarkdown.decode(markdown);` to `parchmentMarkdown.decode(markdown).toDelta()` * Change `parchmentHtml.encode(delta);` to `parchmentHtml.encode(ParchmentDocument.fromDelta(delta));` diff --git a/packages/parchment/lib/codec.dart b/packages/parchment/lib/codecs.dart similarity index 95% rename from packages/parchment/lib/codec.dart rename to packages/parchment/lib/codecs.dart index 4f48e263..fd5e27fa 100644 --- a/packages/parchment/lib/codec.dart +++ b/packages/parchment/lib/codecs.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Provides codecs to convert Parchment documents to other formats. -library parchment.codec; +library parchment.codecs; import 'src/codecs/markdown.dart'; import 'src/codecs/html.dart'; diff --git a/packages/parchment/test/codecs/markdown_test.dart b/packages/parchment/test/codecs/markdown_test.dart index 087bb37c..8df28f85 100644 --- a/packages/parchment/test/codecs/markdown_test.dart +++ b/packages/parchment/test/codecs/markdown_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import 'dart:convert'; -import 'package:parchment/codec.dart'; +import 'package:parchment/codecs.dart'; import 'package:parchment/parchment.dart'; import 'package:quill_delta/quill_delta.dart'; import 'package:test/test.dart';