Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate NAPI front-end to WASM and ESM #1120

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/calm-ghosts-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": minor
---

migrate NAPI front-end to WASM and ESM
5 changes: 5 additions & 0 deletions .changeset/cold-emus-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": minor
---

add `TerminalKindExtensions.is_valid()` API to distinguish correctly-parsed and erroneous nodes
3 changes: 1 addition & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"access": "public",
"baseBranch": "main",
"changelog": ["./custom-changelog-generator.js", { "repo": "NomicFoundation/slang" }],
"fixed": [["@nomicfoundation/slang", "@nomicfoundation/slang-*"]]
"changelog": ["@changesets/changelog-github", { "repo": "NomicFoundation/slang" }]
}
14 changes: 0 additions & 14 deletions .changeset/custom-changelog-generator.js

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/lucky-fireants-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": patch
---

change `Parser::new()` constructor to `Parser::create()` static method.
5 changes: 5 additions & 0 deletions .changeset/spotty-pigs-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": minor
---

unify API methods on `TerminalNode` and `NonTerminalNode`, and add type assertions and guards to both types
5 changes: 5 additions & 0 deletions .changeset/stale-spoons-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": minor
---

expose edges and edge labels on CST nodes via `Node.children()` method. This allows distinguishing between children of the same node based on their label/role in the parent, even if they have the same kind.
5 changes: 5 additions & 0 deletions .changeset/unlucky-tables-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": minor
---

add `TerminalNode.id` and `Nonterminal.id` properties to get a numeric ID that can be used in indexing/comparison at runtime.
5 changes: 5 additions & 0 deletions .changeset/wicked-jobs-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/slang": minor
---

add `TerminalKindExtensions.is_trivia()` API to distinguish between trivia nodes and other contentful nodes
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/v5.19.2/cspell.schema.json",
"language": "en-US",
"files": ["**/*.md"],
"ignorePaths": ["**/generated/**", "CHANGELOG.md"],
"ignorePaths": ["submodules/**", "**/generated/**", "CHANGELOG.md"],
"ignoreWords": [
// Alphabetically sorted list of "allowed" words to ignore:
"abicoder",
"codegen",
"contentful",
"devcontainer",
"doxygen",
"ebnf",
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "submodules/jco"]
path = "submodules/jco"
url = "https://github.com/NomicFoundation/jco"
branch = "nomic-enhancements-release"
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Scripts controlled by Hermit:
bin/

# Git Submodules
submodules/

# Ember Templates
documentation/overrides/**/*.html

Expand All @@ -11,6 +14,9 @@ documentation/overrides/**/*.html
**/.hermit/
**/node_modules/

# Generated WASM bindings
**/wasm/generated/*.js

# Generated Artifacts
**/target/
**/Pipfile.lock
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"editor.rulers": [120],
"files.associations": {
"**/documentation/overrides/**/*.html": "jinja-html",
"*.ts.jinja2": "jinja-js", // until 'jinja-ts' is released: https://github.com/samuelcolvin/jinjahtml-vscode/pull/148
"*.{ts,mts}.jinja2": "jinja-js", // until 'jinja-ts' is released: https://github.com/samuelcolvin/jinjahtml-vscode/pull/148
"*.wit.jinja2": "wai"
},
"editor.unicodeHighlight.allowedCharacters": {
Expand Down
Loading
Loading