@discord/intl-message-database 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -6
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -1,7 +1,20 @@
1
- # intl-message-database
1
+ # intl_message_database
2
2
 
3
- A Rust-based native Node extension module for quickly parsing, processing, and generating structured message definitions
4
- across an entire project. This is the core module powering all of the loaders, transformer plugins, and other tooling
5
- that relate to messages and translations. It includes a custom parser to handle a combination of ICU MessageFormat syntax
6
- for variable interpolations, along with (almost) full support for Markdown's inline styling syntax, and is able to output
7
- reformatted strings, ASTs, type definitions, perform validations across multiple translations, and more.
3
+ A Rust-based native Node extension module for quickly parsing, processing, and generating structured message definitions across an entire project. This is the core module powering all of the loaders, transformer plugins, and other tooling that relate to messages and translations. It includes a custom parser to handle a combination of ICU MessageFormat syntax for variable interpolations, along with (almost) full support for Markdown's inline styling syntax, and is able to output reformatted strings, ASTs, type definitions, perform validations across multiple translations, and more.
4
+
5
+ This crate is primarily developed for the Node API, but is implemented in a way that allows for other interfaces in the future (or splitting into multiple crates).
6
+
7
+ Business logic for this crate should be exposed as a Rust interface through the `public.rs` module. Interfaces for other languages should then be added as separate modules that proxy types from those languages to the `public` module. They should _not_ perform any other work or logic independently.
8
+
9
+ ## Development
10
+
11
+ This crate is managed by the `intl-cli`, including commands for building and testing it across platforms:
12
+
13
+ ```shell
14
+ # Build the library locally
15
+ pnpm intl-cli db build --target local
16
+ # Build specifically for a given target name
17
+ pnpm intl-cli db build --target darwin-arm64
18
+ # Run the benchmark tests on a local build to compare performance
19
+ pnpm intl-cli db bench
20
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord/intl-message-database",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "license": "MIT",
5
5
  "description": "Rust-based Node extension module for parsing, extracting, and managing messages and translations across a project.",
6
6
  "author": "Jon Egeland",
@@ -15,19 +15,19 @@
15
15
  "url": "https://github.com/discord/discord-intl"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@discord/intl-message-database-linux-arm64-gnu": "0.15.0",
19
- "@discord/intl-message-database-darwin-arm64": "0.15.0",
20
- "@discord/intl-message-database-darwin-x64": "0.15.0",
21
- "@discord/intl-message-database-linux-arm64-musl": "0.15.0",
22
- "@discord/intl-message-database-linux-x64-gnu": "0.15.0",
23
- "@discord/intl-message-database-linux-x64-musl": "0.15.0",
24
- "@discord/intl-message-database-win32-arm64-msvc": "0.15.0",
25
- "@discord/intl-message-database-win32-ia32-msvc": "0.15.0",
26
- "@discord/intl-message-database-win32-x64-msvc": "0.15.0"
18
+ "@discord/intl-message-database-darwin-arm64": "0.16.0",
19
+ "@discord/intl-message-database-linux-arm64-gnu": "0.16.0",
20
+ "@discord/intl-message-database-linux-arm64-musl": "0.16.0",
21
+ "@discord/intl-message-database-linux-x64-gnu": "0.16.0",
22
+ "@discord/intl-message-database-linux-x64-musl": "0.16.0",
23
+ "@discord/intl-message-database-darwin-x64": "0.16.0",
24
+ "@discord/intl-message-database-win32-arm64-msvc": "0.16.0",
25
+ "@discord/intl-message-database-win32-ia32-msvc": "0.16.0",
26
+ "@discord/intl-message-database-win32-x64-msvc": "0.16.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@napi-rs/cli": "^2.18.3",
30
- "@discord/intl-ast": "0.15.0"
30
+ "@discord/intl-ast": "0.16.0"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">= 10"