Skip to content

Releases: CodinGame/monaco-editor-wrapper

v10.1.3

13 Dec 11:06
2f38f51
Compare
Choose a tag to compare

10.1.3 (2024-12-13)

Bugfixes

  • do not disable rule (8a29234)
  • don't change selection for locked code if only moving cursor (1d3e741)
  • format Windows and old Mac line breaks to enable copy-paste (1d5ed92)
  • use model EOL (5da9691)

v10.1.2

12 Dec 17:53
6beb376
Compare
Choose a tag to compare

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

v10.1.1

03 Dec 15:03
bc2973e
Compare
Choose a tag to compare

10.1.1 (2024-12-03)

Bugfixes

  • prevent edit when uneditable range and selected range intersect or touch (417adf4)

v10.1.0

21 Nov 11:20
221a01d
Compare
Choose a tag to compare

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)

v10.0.1

07 Nov 11:31
2d13a96
Compare
Choose a tag to compare

10.0.1 (2024-11-07)

Bugfixes

  • properly restore model on editor disposal (16c4a24)

v10.0.0

09 Oct 14:32
a303d8c
Compare
Choose a tag to compare

10.0.0 (2024-10-09)

⚠ BREAKING CHANGES

  • improve lock code feature

New features

  • improve lock code feature (111d1e4)

v9.0.1

23 Aug 14:13
Compare
Choose a tag to compare

9.0.1 (2024-08-23)

Cleanup

  • remove placeholder feature as it's now a monaco-editor builtin (f44392a)

v9.0.0

23 Aug 14:09
Compare
Choose a tag to compare

9.0.0 (2024-08-23)

⚠ BREAKING CHANGES

  • update VSCode and other dependencies

Bugfixes

  • prevent updating internal node types (c892818)

Libraries

  • update VSCode and other dependencies (d70b2f7)

v8.2.0

29 Jul 10:43
Compare
Choose a tag to compare

8.2.0 (2024-07-29)

New features

  • always use workingCopy service (c0ed058)

v8.1.0

11 Jul 15:12
Compare
Choose a tag to compare

8.1.0 (2024-07-11)

New features

  • split working copy service (13b7ad2)