Skip to content

Conversation

@artembatura
Copy link
Owner

@artembatura artembatura commented Jun 2, 2023

Readme changes

  • Use downloads per week badge instead of per month
  • Remove total downloads badge
  • Update examples with ReplaceOperation

Internal changes

  • Remove Operation static class.
    • Move operations apply logic directly to operations.
    • Move operations serialization and deserialization logic directly to operations.
    • Move fill constants logic to utility function fillConstantsInString.
  • Implement TextRange, TextLinesRange, TextSection and TextLinesSection classes.
  • Implement AbstractSerializable abstract class. The inherited class must implement toSerializable method and SERIALIZABLE_CLASS property (string).
  • AbstractOperation now doesn't require implement getSerializableProperties and getTextProperties methods. Instead now you should new apply methods and derived from AbstractSerializable - toSerializable method.
  • Add tests for ReplaceOperation.

Public changes

  • ReplaceOperation now support replacing text ranges and line ranges by passing range class instance to searchValue argument.
Rename `LinesRangeMarkerGroup` to `LinesRangeMarked`. Rename `TextRangeMarkerGroup` to `TextRangeMarked`. Rename `ConcatOperationStrategy` to `ConcatPosition`. Rename `ReplaceRepeatCount` to `ReplaceStrategy`.
Rename `LinesRangeMarked` to `MarkedLinesRange`. Rename `TextRangeMarked` to `MarkedTextRange`.
Rename class `LinesRange` to `TextLinesRange`. Rename class `MarkedTextRange` to `TextSection`. Rename class `MarkedLinesRange` to `TextLinesSection`. Rename `startPos` property to `startIndex`. Rename `endPos` property to `endIndex`.
@artembatura artembatura self-assigned this Jun 2, 2023
@artembatura artembatura changed the title V5: Extend ReplaceOperation functionality and rewrite serialization internals V5: Add support for replacing text ranges and sections using replace operation Jun 2, 2023
@artembatura artembatura closed this Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants