Skip to content

Commit

Permalink
Fix a bug introduced by a recent package update
Browse files Browse the repository at this point in the history
In a recent commit, various packages were updated to more recent versions. Parsimmon, in particular, was bumped from 1.16.0 to 1.18.1.

However, starting from version 1.17, the semantic of getting the position of the parser's head after reading a newline character (\n) seems to have changed, as suggested by jneen/parsimmon#331 (instead of returning a position at the end of line N where \n was read, it returns a position at the beginning of line N+1). This was a breaking change, given how i-LaTeX's parser is implemented. For this reason, the package was reverted to version 1.16.0.
  • Loading branch information
Daru13 committed Apr 14, 2022
1 parent 645f952 commit 7d46060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@
"vsce": "^2.7.0"
},
"dependencies": {
"parsimmon": "1.18.1"
"parsimmon": "1.16.0"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1366,10 +1366,10 @@ parse5@^6.0.1:
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==

parsimmon@1.18.1:
version "1.18.1"
resolved "https://registry.yarnpkg.com/parsimmon/-/parsimmon-1.18.1.tgz#d8dd9c28745647d02fc6566f217690897eed7709"
integrity sha512-u7p959wLfGAhJpSDJVYXoyMCXWYwHia78HhRBWqk7AIbxdmlrfdp5wX0l3xv/iTSH5HvhN9K7o26hwwpgS5Nmw==
parsimmon@1.16.0:
version "1.16.0"
resolved "https://registry.yarnpkg.com/parsimmon/-/parsimmon-1.16.0.tgz#2834e3db645b6a855ab2ea14fbaad10d82867e0f"
integrity sha512-tekGDz2Lny27SQ/5DzJdIK0lqsWwZ667SCLFIDCxaZM7VNgQjyKLbaL7FYPKpbjdxNAXFV/mSxkq5D2fnkW4pA==

path-exists@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit 7d46060

Please sign in to comment.