Skip to content

Commit

Permalink
migrate NAPI front-end to WASM and ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik committed Oct 8, 2024
1 parent 9126cda commit 4c08c9e
Show file tree
Hide file tree
Showing 450 changed files with 9,668 additions and 16,111 deletions.
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

0 comments on commit 4c08c9e

Please sign in to comment.