Skip to content

Commit

Permalink
Rename codec library to codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-P committed Apr 4, 2023
1 parent b2f0c9e commit fff6767
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/parchment/test/codecs/markdown_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit fff6767

Please sign in to comment.