Releases: CodinGame/monaco-editor-wrapper
Releases · CodinGame/monaco-editor-wrapper
v10.1.3
v10.1.2
10.1.2 (2024-12-12)
Bugfixes
- allow paste when selected locked code doesn't change (8412173)
- fix locked code ranges and text split (cf76aee)
- fix operation split and operation text split (8ba06e8)
- fix ranges computation (8c76d0f)
- fix split operation text function when uneditable range text not in text to split (0c5ae90)
- increment uneditable range index correctly when computing new operations (c40f3c1)
- recompute editor operations for locking code using decorations (f538ee0)
- remove pollution logs in tests (b450e74)
- removed line bug when pasting code (b749674)
- select first editable range when pasting for locked code with decorations (f2e327c)
- throw custom error when operation is invalid with locked code (bbf980c)
- use minusRanges to get hidden areas and visible ranges in hideCodeWithoutDecoration (f8c1ed4)
- use string indexOf instead of split to split text at the first occurrence only (e47df09)
Refactor
- change code so it's easier to test (6308574)
- extract error handling to facilitate tests (cb5a8a4)
- move range and operations functions in separate files (8faaeb6)
- refactor minusRanges function to return all ranges (f8cea32)
- rename computeNewOperationsForLockedCode to tryIgnoreLockedCode (0759eb0)
- rename functions on locked code and their variables (4211c36)
- rename minusRange function and return values (896f2d2)
- split compute of new operations in multiple functions (b598071)
- split editable ranges and operation text separately (c291e16)
- use position in minUsRange instead of lines and columns (7ee4792)
Cleanup
- remove override of editor paste (04bfcfb)
- remove unecessary configs in tsconfig (59ba25d)
- remove unecessary constructor for LockedCodeError (5cfb9f1)
- remove unneeded console.info (7c5a675)
Test
- add jest config and tests on locked code (acd5928)
- simplify createTestRange function (8ec2433)
- update test by mocking code lock and edit operations (28be49e)
Libraries
- install @jest/globals (36c4ef1)
v10.1.1
v10.1.0
10.1.0 (2024-11-21)
New features
- add and export function to collapse code from ranges (282b94e)
- add and export functions to lock code from ranges, without ranges, from decoration and without decoration (4d0cc45)
- add functions to lock code with ranges or with decorations (27c090d)
- move and export extraction of ranges from tokens in generic function (6146f08)
Bugfixes
- use decorationFilter to lock code instead of ranges (ecb48f9)
Refactor
- rename lock functions and update their parameters doc (e80833d)
Cleanup
- remove functions that lock code with ranges (781efe8)
- remove unecessary createDecorationsForRanges function (24a86fd)
Documentation
- re-add missing comment in lockCodeUsingDecoration and fix README extractRangesFromTokens description (4c714ed)