Prepare Decodal packages for release
This commit is contained in:
Generated
+8
-8
@@ -56,7 +56,7 @@ checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal"
|
name = "decodal"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal-derive",
|
"decodal-derive",
|
||||||
"regex",
|
"regex",
|
||||||
@@ -64,14 +64,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal-cli"
|
name = "decodal-cli"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal",
|
"decodal",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal-derive"
|
name = "decodal-derive"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal",
|
"decodal",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
@@ -81,14 +81,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal-language-service"
|
name = "decodal-language-service"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal",
|
"decodal",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal-language-tools"
|
name = "decodal-language-tools"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal",
|
"decodal",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
@@ -99,7 +99,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal-lsp"
|
name = "decodal-lsp"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal",
|
"decodal",
|
||||||
"decodal-language-service",
|
"decodal-language-service",
|
||||||
@@ -111,7 +111,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "decodal-wasm"
|
name = "decodal-wasm"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"decodal",
|
"decodal",
|
||||||
"decodal-language-service",
|
"decodal-language-service",
|
||||||
@@ -391,7 +391,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tree-sitter-decodal"
|
name = "tree-sitter-decodal"
|
||||||
version = "0.0.1"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"tree-sitter",
|
"tree-sitter",
|
||||||
|
|||||||
+2
-1
@@ -7,11 +7,12 @@ members = [
|
|||||||
"crates/decodal-language-tools",
|
"crates/decodal-language-tools",
|
||||||
"crates/decodal-language-service",
|
"crates/decodal-language-service",
|
||||||
"crates/decodal-lsp",
|
"crates/decodal-lsp",
|
||||||
|
"editors/tree-sitter-decodal",
|
||||||
]
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.85"
|
rust-version = "1.85"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
|
|||||||
@@ -67,9 +67,16 @@ cargo run -q -p decodal-cli --features regex -- examples/regex/main.dcdl
|
|||||||
|
|
||||||
## Language server
|
## Language server
|
||||||
|
|
||||||
The `decodal-lsp` workspace package provides a stdio language server with live semantic diagnostics and document formatting.
|
The `decodal-language-service` crate provides transport-independent evaluation and completion, while `decodal-lsp` exposes it through the Language Server Protocol with live semantic diagnostics and document formatting.
|
||||||
Its library API accepts the same host environment used for production evaluation, so application-defined globals and structured import routing remain available in the editor.
|
Its library API accepts the same host environment used for production evaluation, so application-defined globals and structured import routing remain available in the editor.
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[dependencies]
|
||||||
|
decodal = "0.1.3"
|
||||||
|
decodal-language-service = "0.1.3"
|
||||||
|
decodal-lsp = "0.1.3"
|
||||||
|
```
|
||||||
|
|
||||||
Run the default filesystem-backed server from the repository:
|
Run the default filesystem-backed server from the repository:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -86,6 +93,8 @@ The static documentation site and browser playground live under:
|
|||||||
site/decodal-site/
|
site/decodal-site/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Browser hosts can use `decodal-wasm`. Its `DecodalLanguageService` accepts JavaScript-owned `globals`, `loadImport`, and `completeImport` callbacks; filesystem and virtual-project policy remain outside the package.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Licensed under either of:
|
Licensed under either of:
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# Releasing Decodal
|
||||||
|
|
||||||
|
Run all commands from the repository root. Publishing requires Cargo, npm, and JSR credentials; validation does not.
|
||||||
|
|
||||||
|
## Versions
|
||||||
|
|
||||||
|
- Rust crates: `0.1.3`
|
||||||
|
- `tree-sitter-decodal`: `0.1.0`
|
||||||
|
- `decodal-wasm` npm/JSR package: `0.1.4`
|
||||||
|
- `decodal-codemirror`: unchanged at `0.1.5`
|
||||||
|
|
||||||
|
## Validate
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo test --workspace
|
||||||
|
cargo clippy --workspace --all-targets -- -D warnings
|
||||||
|
cargo clippy -p decodal-wasm --target wasm32-unknown-unknown -- -D warnings
|
||||||
|
npm --prefix site/decodal-site run build:runtime
|
||||||
|
npm --prefix site/decodal-site test
|
||||||
|
npm --prefix site/decodal-site run build
|
||||||
|
deno check packages/decodal-wasm/mod.ts
|
||||||
|
npm pack --dry-run ./packages/decodal-wasm
|
||||||
|
deno publish --dry-run --config packages/decodal-wasm/jsr.json
|
||||||
|
```
|
||||||
|
|
||||||
|
## Publish Rust crates
|
||||||
|
|
||||||
|
Publish in dependency order. Wait for each crate to become available in the crates.io index before continuing.
|
||||||
|
Run the corresponding command with `--dry-run` immediately before each real publish.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo publish -p decodal-derive
|
||||||
|
cargo publish -p decodal
|
||||||
|
cargo publish -p tree-sitter-decodal
|
||||||
|
cargo publish -p decodal-language-service
|
||||||
|
cargo publish -p decodal-language-tools
|
||||||
|
cargo publish -p decodal-lsp
|
||||||
|
```
|
||||||
|
|
||||||
|
`decodal-cli` and the Rust `decodal-wasm` wrapper remain repository-only packages.
|
||||||
|
|
||||||
|
## Publish JavaScript packages
|
||||||
|
|
||||||
|
The runtime build regenerates and normalizes the committed npm/JSR package before publishing.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm --prefix site/decodal-site run build:runtime
|
||||||
|
npm publish ./packages/decodal-wasm
|
||||||
|
deno publish --config packages/decodal-wasm/jsr.json
|
||||||
|
```
|
||||||
|
|
||||||
|
After both registries accept the release, tag the release commit and update the deployed site.
|
||||||
@@ -20,4 +20,4 @@ default = []
|
|||||||
regex = ["decodal/regex"]
|
regex = ["decodal/regex"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal = { version = "0.1.2", path = "../decodal-core" }
|
decodal = { version = "0.1.3", path = "../decodal-core" }
|
||||||
|
|||||||
@@ -17,5 +17,5 @@ derive = ["dep:decodal-derive"]
|
|||||||
regex = ["std", "dep:regex"]
|
regex = ["std", "dep:regex"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal-derive = { version = "0.1.1", path = "../decodal-derive", optional = true }
|
decodal-derive = { version = "0.1.3", path = "../decodal-derive", optional = true }
|
||||||
regex = { version = "1.10", default-features = false, features = ["std", "unicode-perl"], optional = true }
|
regex = { version = "1.10", default-features = false, features = ["std", "unicode-perl"], optional = true }
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ keywords = ["decodal", "lsp", "language-server", "editor"]
|
|||||||
categories = ["development-tools", "text-editors"]
|
categories = ["development-tools", "text-editors"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal = { version = "0.1.2", path = "../decodal-core" }
|
decodal = { version = "0.1.3", path = "../decodal-core" }
|
||||||
|
|||||||
@@ -9,16 +9,15 @@ readme.workspace = true
|
|||||||
description = "Source-level language tooling for Decodal."
|
description = "Source-level language tooling for Decodal."
|
||||||
keywords = ["decodal", "formatter", "lsp", "tree-sitter"]
|
keywords = ["decodal", "formatter", "lsp", "tree-sitter"]
|
||||||
categories = ["development-tools", "text-processing"]
|
categories = ["development-tools", "text-processing"]
|
||||||
publish = false
|
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal = { version = "0.1.2", path = "../decodal-core" }
|
decodal = { version = "0.1.3", path = "../decodal-core" }
|
||||||
serde_json.workspace = true
|
serde_json.workspace = true
|
||||||
tree-sitter = "0.22.6"
|
tree-sitter = "0.22.6"
|
||||||
tree-sitter-decodal = { path = "../../editors/tree-sitter-decodal" }
|
tree-sitter-decodal = { version = "0.1.0", path = "../../editors/tree-sitter-decodal" }
|
||||||
wasm-bindgen.workspace = true
|
wasm-bindgen.workspace = true
|
||||||
|
|
||||||
[package.metadata.wasm-pack.profile.release]
|
[package.metadata.wasm-pack.profile.release]
|
||||||
|
|||||||
@@ -9,12 +9,11 @@ readme.workspace = true
|
|||||||
description = "Language Server Protocol implementation for Decodal."
|
description = "Language Server Protocol implementation for Decodal."
|
||||||
keywords = ["decodal", "lsp", "language-server", "editor"]
|
keywords = ["decodal", "lsp", "language-server", "editor"]
|
||||||
categories = ["development-tools", "text-editors"]
|
categories = ["development-tools", "text-editors"]
|
||||||
publish = false
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal = { version = "0.1.2", path = "../decodal-core" }
|
decodal = { version = "0.1.3", path = "../decodal-core" }
|
||||||
decodal-language-service = { version = "0.1.2", path = "../decodal-language-service" }
|
decodal-language-service = { version = "0.1.3", path = "../decodal-language-service" }
|
||||||
decodal-language-tools = { version = "0.1.2", path = "../decodal-language-tools" }
|
decodal-language-tools = { version = "0.1.3", path = "../decodal-language-tools" }
|
||||||
lsp-server = "0.10"
|
lsp-server = "0.10"
|
||||||
lsp-types = "0.97"
|
lsp-types = "0.97"
|
||||||
serde_json.workspace = true
|
serde_json.workspace = true
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ publish = false
|
|||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
decodal = { version = "0.1.2", path = "../decodal-core" }
|
decodal = { version = "0.1.3", path = "../decodal-core" }
|
||||||
decodal-language-service = { version = "0.1.2", path = "../decodal-language-service" }
|
decodal-language-service = { version = "0.1.3", path = "../decodal-language-service" }
|
||||||
serde_json.workspace = true
|
serde_json.workspace = true
|
||||||
wasm-bindgen.workspace = true
|
wasm-bindgen.workspace = true
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tree-sitter-decodal"
|
name = "tree-sitter-decodal"
|
||||||
description = "Decodal grammar for tree-sitter"
|
description = "Decodal grammar for tree-sitter"
|
||||||
version = "0.0.1"
|
version = "0.1.0"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["incremental", "parsing", "tree-sitter", "decodal"]
|
keywords = ["incremental", "parsing", "tree-sitter", "decodal"]
|
||||||
categories = ["parsing", "text-editors"]
|
categories = ["parsing", "text-editors"]
|
||||||
repository = "https://github.com/tree-sitter/tree-sitter-decodal"
|
repository = "https://gitea.hareworks.net/Hare/Decodal"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
autoexamples = false
|
autoexamples = false
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
|
|||||||
path = "bindings/rust/lib.rs"
|
path = "bindings/rust/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tree-sitter = ">=0.22.6"
|
tree-sitter = "0.22.6"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
cc = "1.0.87"
|
cc = "1.0.87"
|
||||||
|
|||||||
@@ -0,0 +1,173 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2026 Decodal contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
Binary file not shown.
@@ -1,11 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@hare/decodal-wasm",
|
"name": "@hare/decodal-wasm",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"license": "MIT",
|
"license": "MIT OR Apache-2.0",
|
||||||
"exports": "./mod.ts",
|
"exports": "./mod.ts",
|
||||||
"publish": {
|
"publish": {
|
||||||
"include": [
|
"include": [
|
||||||
"README.md",
|
"README.md",
|
||||||
|
"LICENSE-MIT",
|
||||||
|
"LICENSE-APACHE",
|
||||||
"mod.ts",
|
"mod.ts",
|
||||||
"decodal_wasm.js",
|
"decodal_wasm.js",
|
||||||
"decodal_wasm.d.ts",
|
"decodal_wasm.d.ts",
|
||||||
|
|||||||
@@ -2,13 +2,16 @@
|
|||||||
"name": "decodal-wasm",
|
"name": "decodal-wasm",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "Host-configurable Decodal evaluator and language service for JavaScript runtimes.",
|
"description": "Host-configurable Decodal evaluator and language service for JavaScript runtimes.",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"license": "MIT OR Apache-2.0",
|
"license": "MIT OR Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.hareworks.net/Hare/Decodal"
|
"url": "https://gitea.hareworks.net/Hare/Decodal"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
"README.md",
|
||||||
|
"LICENSE-MIT",
|
||||||
|
"LICENSE-APACHE",
|
||||||
"decodal_wasm_bg.wasm",
|
"decodal_wasm_bg.wasm",
|
||||||
"decodal_wasm.js",
|
"decodal_wasm.js",
|
||||||
"decodal_wasm.d.ts"
|
"decodal_wasm.d.ts"
|
||||||
@@ -23,5 +26,13 @@
|
|||||||
"wasm",
|
"wasm",
|
||||||
"dsl",
|
"dsl",
|
||||||
"config"
|
"config"
|
||||||
]
|
],
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"types": "./decodal_wasm.d.ts",
|
||||||
|
"import": "./decodal_wasm.js"
|
||||||
|
},
|
||||||
|
"./decodal_wasm_bg.wasm": "./decodal_wasm_bg.wasm",
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+2
-1
@@ -29,6 +29,7 @@
|
|||||||
"license": "MIT OR Apache-2.0",
|
"license": "MIT OR Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@codemirror/language": "^6.12.4",
|
"@codemirror/language": "^6.12.4",
|
||||||
|
"@codemirror/state": "^6.7.1",
|
||||||
"@codemirror/view": "^6.43.6",
|
"@codemirror/view": "^6.43.6",
|
||||||
"@lezer/highlight": "^1.2.3",
|
"@lezer/highlight": "^1.2.3",
|
||||||
"@lezer/lr": "^1.4.10"
|
"@lezer/lr": "^1.4.10"
|
||||||
@@ -41,7 +42,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"../../packages/decodal-wasm": {
|
"../../packages/decodal-wasm": {
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"license": "MIT OR Apache-2.0"
|
"license": "MIT OR Apache-2.0"
|
||||||
},
|
},
|
||||||
"node_modules/@astrojs/check": {
|
"node_modules/@astrojs/check": {
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
import { readFileSync, writeFileSync } from 'node:fs';
|
import { copyFileSync, readFileSync, writeFileSync } from 'node:fs';
|
||||||
import { resolve } from 'node:path';
|
import { resolve } from 'node:path';
|
||||||
|
|
||||||
const packageDir = resolve(import.meta.dirname, '../../../packages/decodal-wasm');
|
const packageDir = resolve(import.meta.dirname, '../../../packages/decodal-wasm');
|
||||||
|
|
||||||
|
copyFileSync(resolve(packageDir, '../../LICENSE-MIT'), resolve(packageDir, 'LICENSE-MIT'));
|
||||||
|
copyFileSync(resolve(packageDir, '../../LICENSE-APACHE'), resolve(packageDir, 'LICENSE-APACHE'));
|
||||||
|
|
||||||
const declarationPath = resolve(packageDir, 'decodal_wasm.d.ts');
|
const declarationPath = resolve(packageDir, 'decodal_wasm.d.ts');
|
||||||
let declarations = readFileSync(declarationPath, 'utf8');
|
let declarations = readFileSync(declarationPath, 'utf8');
|
||||||
const hostTypes = `
|
const hostTypes = `
|
||||||
@@ -77,7 +80,23 @@ writeFileSync(
|
|||||||
|
|
||||||
const packageJsonPath = resolve(packageDir, 'package.json');
|
const packageJsonPath = resolve(packageDir, 'package.json');
|
||||||
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
|
||||||
packageJson.version = '0.1.3';
|
packageJson.version = '0.1.4';
|
||||||
|
packageJson.files = [
|
||||||
|
'README.md',
|
||||||
|
'LICENSE-MIT',
|
||||||
|
'LICENSE-APACHE',
|
||||||
|
'decodal_wasm_bg.wasm',
|
||||||
|
'decodal_wasm.js',
|
||||||
|
'decodal_wasm.d.ts',
|
||||||
|
];
|
||||||
|
packageJson.exports = {
|
||||||
|
'.': {
|
||||||
|
types: './decodal_wasm.d.ts',
|
||||||
|
import: './decodal_wasm.js',
|
||||||
|
},
|
||||||
|
'./decodal_wasm_bg.wasm': './decodal_wasm_bg.wasm',
|
||||||
|
'./package.json': './package.json',
|
||||||
|
};
|
||||||
writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
|
writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
|
||||||
|
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
@@ -159,12 +178,14 @@ writeFileSync(
|
|||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
{
|
{
|
||||||
name: '@hare/decodal-wasm',
|
name: '@hare/decodal-wasm',
|
||||||
version: '0.1.3',
|
version: '0.1.4',
|
||||||
license: 'MIT',
|
license: 'MIT OR Apache-2.0',
|
||||||
exports: './mod.ts',
|
exports: './mod.ts',
|
||||||
publish: {
|
publish: {
|
||||||
include: [
|
include: [
|
||||||
'README.md',
|
'README.md',
|
||||||
|
'LICENSE-MIT',
|
||||||
|
'LICENSE-APACHE',
|
||||||
'mod.ts',
|
'mod.ts',
|
||||||
'decodal_wasm.js',
|
'decodal_wasm.js',
|
||||||
'decodal_wasm.d.ts',
|
'decodal_wasm.d.ts',
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ Production = Server & {
|
|||||||
<strong>crates.io/crates/decodal</strong>
|
<strong>crates.io/crates/decodal</strong>
|
||||||
</a>
|
</a>
|
||||||
<ul class="package-list">
|
<ul class="package-list">
|
||||||
<li>decodal-wasm on <a href="https://jsr.io/@hare/decodal-wasm@0.1.3">jsr</a> / <a href="https://www.npmjs.com/package/decodal-wasm">npm</a></li>
|
<li>decodal-wasm on <a href="https://jsr.io/@hare/decodal-wasm@0.1.4">jsr</a> / <a href="https://www.npmjs.com/package/decodal-wasm">npm</a></li>
|
||||||
<li>decodal-codemirror on <a href="https://jsr.io/@hare/decodal-codemirror@0.1.5">jsr</a> / <a href="https://www.npmjs.com/package/decodal-codemirror">npm</a></li>
|
<li>decodal-codemirror on <a href="https://jsr.io/@hare/decodal-codemirror@0.1.5">jsr</a> / <a href="https://www.npmjs.com/package/decodal-codemirror">npm</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user