@stacksjs/i18n 0.70.160 → 0.70.162

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.
package/README.md CHANGED
@@ -15,6 +15,10 @@
15
15
 
16
16
  Stacks is a rapid development framework, where the goal is to _help you_ create & maintain frontends, backends, and clouds—without having to worry about the boilerplate. _An all-in-one toolkit that meets all your full stack needs._
17
17
 
18
+ [![Stacks runtime architecture](./docs/diagrams/stacks-runtime.png)](./docs/diagrams/stacks-runtime.html)
19
+
20
+ _Open the diagram for light and dark themes plus SVG, PNG, JPEG, and WebP exports._
21
+
18
22
  - Web & Desktop Applications _(including system tray apps)_
19
23
  - Serverless & Traditional APIs
20
24
  - Cloud Infrastructure Creation & Maintenance
@@ -32,23 +36,34 @@ As a developer, Stacks helps you every step along the way—in beginner & expert
32
36
 
33
37
  ## Prerequisites
34
38
 
35
- Stacks runs on [Bun](https://bun.sh). You'll need:
39
+ Stacks uses [Pantry](https://pantry.dev) to provision Bun, Git, SQLite, and the project-specific tools declared by the framework. You'll need:
40
+
41
+ - **Pantry** - install it with `curl -fsSL https://pantry.dev | bash`, then run `pantry bootstrap` once to configure your shell.
42
+ - **macOS, Linux, or WSL** - Windows-native support is on the roadmap. The current toolchain assumes a POSIX shell.
36
43
 
37
- - **Bun 1.3.0** install with `curl -fsSL https://bun.sh/install | bash`, or upgrade an existing install with `bun upgrade`.
38
- - **macOS, Linux, or WSL** — Windows-native is on the roadmap; today the toolchain assumes a POSIX shell.
39
- - **Node.js is NOT required.** Bun handles the JS/TS runtime, package management, and bundling.
44
+ Pantry installs and pins Bun 1.3 or newer for each Stacks project, then keeps the rest of the machine and project dependencies in sync. Features such as PostgreSQL, Redis, and cloud deployment add their requirements through the same Pantry manifest where possible, with feature-specific configuration documented alongside them.
40
45
 
41
- That's it for the framework itself. Individual features (Postgres, Redis, AWS deploys, etc.) bring their own prereqs — each is called out where it matters in the docs.
46
+ Stacks pins Pantry [`v0.10.36`](https://github.com/pantry-pm/pantry/tree/v0.10.36)
47
+ as an external toolchain contract. Resolution sources, lockfile and integrity
48
+ rules, lifecycle trust, registry routes, authentication, storage, and failure
49
+ modes are documented in the source-linked whitepaper references for the
50
+ [package manager](https://whitepaper.stacksjs.com/reference/package-manager) and
51
+ [registry](https://whitepaper.stacksjs.com/reference/registry). Stacks does not
52
+ redefine those behaviors.
42
53
 
43
54
  ## Get Started
44
55
 
45
- The fastest path, assuming Bun is installed:
56
+ The fastest path after Pantry is installed:
46
57
 
47
58
  ```bash
48
- bunx @stacksjs/buddy new my-project
59
+ panx @stacksjs/buddy new my-project
49
60
  ```
50
61
 
51
- A one-line installer (`curl -Ssf stacksjs.com/install | sh`) is also planned and will appear here once it lands; for now the `bunx` form above is the supported install path.
62
+ Pantry executes Buddy in an isolated environment and provisions the generated project's declared toolchain during setup.
63
+
64
+ For frontend experiments in the browser, open the live stx starter:
65
+
66
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/stacksjs/stackblitz?title=Stacks%20Starter)
52
67
 
53
68
  ## Usage
54
69
 
@@ -76,7 +91,7 @@ buddy --help # view help menu
76
91
 
77
92
  buddy new my-project # creates a new Stacks project
78
93
  buddy install # installs dependencies
79
- buddy add # adds a stack or dependency
94
+ buddy add calendar # pulls a registered project-shaped stack into this project
80
95
  buddy fresh # fresh reinstall of all deps (--force skips the confirmation)
81
96
  buddy clean # removes all deps (--force skips the confirmation)
82
97
  buddy setup # sets up the project initially
@@ -113,7 +128,7 @@ buddy build # select a specific build (follow CLI prompts)
113
128
  buddy build:frontend # builds the frontend (aliases: build:views, build:pages)
114
129
  buddy build:desktop # builds Desktop application
115
130
  buddy build:functions # builds function library
116
- buddy build:components # builds Vue component library & Web Component library
131
+ buddy build:components # builds the STX component library and Web Component library
117
132
  buddy build:web-components # builds framework agnostic Web Component library (i.e. Custom Elements)
118
133
  buddy build:cli # builds the Buddy CLI binary
119
134
  buddy build:server # builds the Stacks cloud server (Docker image)
@@ -141,7 +156,7 @@ buddy make:migration create_cars_table # creates a cars migration file
141
156
  buddy make:factory cars # creates a Car factory file
142
157
  buddy make:notification welcome-email # bootstraps a welcome-email notification
143
158
  buddy make:lang de # bootstraps a lang/de.yml language file
144
- buddy make:stack my-plugin # scaffolds a publishable stack/plugin (new project? use `bunx @stacksjs/buddy new`)
159
+ buddy make:stack my-plugin # scaffolds a project-shaped registry stack (new project? use `panx @stacksjs/buddy new`)
145
160
 
146
161
  buddy migrate # runs database migrations
147
162
  buddy migrate:fresh # drops all tables & re-runs migrations (destroys all data; --seed reseeds)
@@ -266,7 +281,6 @@ _Develop serverless (or server) functions with countless helpers to build scalab
266
281
  - 💾 **Storage** _a secure-by-default File API that feels right_
267
282
  - 🧪 **Tinker** _a powerful TypeScript REPL_
268
283
  - 🌪️ **Validation** _e2e type-safety (true frontend & backend harmony)_
269
- - 🎯 **X-Ray** _all you need to debug, log & analyze_
270
284
 
271
285
  ### Cloud Development
272
286
 
@@ -306,7 +320,7 @@ Convention over configuration, while staying wholly configurable. _No more boile
306
320
  - 🚗 **Auto Imports** _your components & functions, including date, string, array, & object helpers_
307
321
  - ⏩ **Code Snippets** _goodbye to the boilerplate code—thank you Sarah Drasner_
308
322
  - 🔤 **Spell Checker** _be notified once there are typos_
309
- - 🛠️ **Essential Utilities** _powers at your fingertips. Collections, VueUse, and more_
323
+ - 🛠️ **Essential Utilities** _powers at your fingertips. Collections, STX composables, and more_
310
324
  - 👥 **Team Management** _manage your team & their permissions_
311
325
  - 🧪 **Streamlined Testing** _unit & e2e tests powered by Bun, Vitest & Playwright_
312
326
 
@@ -48,7 +48,7 @@ export declare function tm(key: string, locale?: string): TranslationMessages |
48
48
  */
49
49
  export declare function createI18n(options?: Partial<I18nConfig>): I18n;
50
50
  /**
51
- * Use i18n composable (for Vue-like usage)
51
+ * Use the i18n composable from an STX component.
52
52
  */
53
53
  export declare function useI18n(options?: Partial<I18nConfig>): I18nInstance;
54
54
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacksjs/i18n",
3
- "version": "0.70.160",
3
+ "version": "0.70.162",
4
4
  "description": "Internationalization system for Stacks.js applications",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -40,7 +40,7 @@
40
40
  "@stacksjs/ts-i18n": "^0.1.9"
41
41
  },
42
42
  "devDependencies": {
43
- "@stacksjs/development": "0.70.160"
43
+ "@stacksjs/development": "0.70.162"
44
44
  },
45
45
  "publishConfig": {
46
46
  "exports": {