Update dependencies to latest versions (including lezer/generator from 1.0.0 to 1.7.1) #20

Closed
dylanbeattie wants to merge 1 commit from main into main
dylanbeattie commented 2024-07-27 23:27:08 +02:00 (Migrated from github.com)

The instructions at https://codemirror.net/examples/lang-package/ on how to create your own language package for CodeMirror refer to this repo (https://github.com/codemirror/lang-example.)

I cloned the repo and began working through the instructions at https://lezer.codemirror.net/docs/guide/#writing-a-grammar and quickly hit the error:

Unexpected token '@asciiLetter'

which led me to https://discuss.codemirror.net/t/generator-throws-error-on-docs-example/5008, in which @marijnh comments:

Could it be you’re using an older version of lezer-generator? That syntax (@asciiLetter) was introduced in 1.1.0.

...and sure enough, lang-example still depends on @lezer/generator 1.0.0.

Looks like it hasn't been updated in a few years, so this PR bumps the various dependencies to their latest versions:

dependencies:

  • @codemirror/language: 6.0.0 => 6.10.2
  • @lezer/highlight: 1.0.0 => 1.2.0
  • @lezer/lr: @1.0.0 => 1.4.2

devDependencies:

  • @lezer/generator: 1.0.0 => 1.7.1
  • @mocha: 9.0.1 => 10.7.0
  • @rollup: 2.60.2 => 4.19.1
  • @rollup-plugin-dts: 4.0.1 => 6.1.1
  • @rollup-plugin-ts: 3.0.2 => 3.4.5
  • @typescript: 4.3.4 => 5.5.4
The instructions at https://codemirror.net/examples/lang-package/ on how to create your own language package for CodeMirror refer to this repo (https://github.com/codemirror/lang-example.) I cloned the repo and began working through the instructions at https://lezer.codemirror.net/docs/guide/#writing-a-grammar and quickly hit the error: ``` Unexpected token '@asciiLetter' ``` which led me to https://discuss.codemirror.net/t/generator-throws-error-on-docs-example/5008, in which @marijnh comments: > Could it be you’re using an older version of lezer-generator? That syntax (@asciiLetter) was introduced in 1.1.0. ...and sure enough, **lang-example** still depends on @lezer/generator 1.0.0. Looks like it hasn't been updated in a few years, so this PR bumps the various dependencies to their latest versions: **dependencies:** - @codemirror/language: 6.0.0 => 6.10.2 - @lezer/highlight: 1.0.0 => 1.2.0 - @lezer/lr: @1.0.0 => 1.4.2 **devDependencies:** - @lezer/generator: 1.0.0 => 1.7.1 - @mocha: 9.0.1 => 10.7.0 - @rollup: 2.60.2 => 4.19.1 - @rollup-plugin-dts: 4.0.1 => 6.1.1 - @rollup-plugin-ts: 3.0.2 => 3.4.5 - @typescript: 4.3.4 => 5.5.4
marijnh commented 2024-07-28 09:05:27 +02:00 (Migrated from github.com)

What were you using to install these dependencies? Both yarn and npm should automatically install the highest available version that matches the range given in the dependency declaration when you initially install.

What were you using to install these dependencies? Both yarn and npm should automatically install the highest available version that matches the range given in the dependency declaration when you initially install.
dylanbeattie commented 2024-07-29 00:39:39 +02:00 (Migrated from github.com)

You're right. Whatever the problem was, it wasn't that. Sorry for wasting your time.

You're right. Whatever the problem was, it wasn't that. Sorry for wasting your time.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-example!20
No description provided.