@inlang/paraglide-js 2.0.0-beta.1 → 2.0.0-beta.2

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/LICENSE CHANGED
@@ -1,7 +1,21 @@
1
- Every [package](./packages/) has their own license.
1
+ MIT License
2
2
 
3
- Guidelines for choosing a license:
3
+ Copyright (c) 2025 Opral US Inc.
4
4
 
5
- - [MIT](https://en.wikipedia.org/wiki/MIT_License) is chosen if the package is a library that developers should build upon.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
6
11
 
7
- - [Fair Core License](https://fcl.dev/) is chosen if the package is an "end product" (app, website, host) that developers do not build on, and might be monetized in the future.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=emit-dts.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emit-dts.test.d.ts","sourceRoot":"","sources":["../../src/compiler/emit-dts.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ // import { test, expect } from "vitest";
2
+ // import { emitDts } from "./emit-dts.js";
3
+ export {};
4
+ // test("emits dts files", () => {
5
+ // // mock paraglide js input of a project
6
+ // const inputs = {
7
+ // "runtime.js": `
8
+ // /**
9
+ // * Some comment
10
+ // */
11
+ // export const availableLocales = /** @type {const} */ (["en","de"]);
12
+ // /**
13
+ // * @typedef {(typeof availableLocales)[number]} AvailableLocale
14
+ // */`,
15
+ // "messages.js": `
16
+ // import * as runtime from "./runtime.js";
17
+ // export const my_mesage = () => "Hello World";
18
+ // `,
19
+ // };
20
+ // // const dts = emitDts(inputs);
21
+ // expect(dts).toMatchInlineSnapshot(
22
+ // {
23
+ // "messages.d.ts": `/* eslint-disable */
24
+ // export function my_mesage(): string;
25
+ // `,
26
+ // "runtime.d.ts": `/* eslint-disable */\n/**\n * Some comment\n */\nexport const availableLocales: readonly ["en", "de"];\nexport type AvailableLocale = (typeof availableLocales)[number];\n`,
27
+ // },
28
+ // `
29
+ // {
30
+ // "messages.d.ts": "/* eslint-disable */
31
+ // export function my_mesage(): string;
32
+ // ",
33
+ // "runtime.d.ts": "/* eslint-disable */
34
+ // /**
35
+ // * Some comment
36
+ // */
37
+ // export const availableLocales: readonly ["en", "de"];
38
+ // export type AvailableLocale = (typeof availableLocales)[number];
39
+ // ",
40
+ // }
41
+ // `
42
+ // );
43
+ // });
@@ -1,5 +1,5 @@
1
1
  export const ENV_VARIABLES = {
2
2
  PARJS_APP_ID: "library.inlang.paraglideJs",
3
3
  PARJS_POSTHOG_TOKEN: "phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz",
4
- PARJS_PACKAGE_VERSION: "2.0.0-beta.1",
4
+ PARJS_PACKAGE_VERSION: "2.0.0-beta.2",
5
5
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@inlang/paraglide-js",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.1",
5
- "license": "Apache-2.0",
4
+ "version": "2.0.0-beta.2",
5
+ "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public",
8
8
  "tag": "beta"
@@ -29,7 +29,7 @@
29
29
  "prettier": "^3.4.2",
30
30
  "prettier-plugin-jsdoc": "^1.3.0",
31
31
  "unplugin": "^2.1.2",
32
- "@inlang/sdk": "2.0.0-beta.4"
32
+ "@inlang/sdk": "2.0.0-beta.5"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@eslint/js": "^9.12.0",