@inlang/sdk 0.31.0 → 0.32.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.
@@ -1 +1 @@
1
- {"version":3,"file":"migrateToDirectory.d.ts","sourceRoot":"","sources":["../../src/migrations/migrateToDirectory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,SAAgB;IACnD,SAAS,EAAE,iBAAiB,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;CACnB,kBA0BA,CAAA"}
1
+ {"version":3,"file":"migrateToDirectory.d.ts","sourceRoot":"","sources":["../../src/migrations/migrateToDirectory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,SAAgB;IACnD,SAAS,EAAE,iBAAiB,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;CACnB,kBA6BA,CAAA"}
@@ -22,6 +22,8 @@ export const maybeMigrateToDirectory = async (args) => {
22
22
  await args.nodeishFs.mkdir(args.projectPath);
23
23
  await args.nodeishFs.writeFile(`${args.projectPath}/settings.json`, settingsFile.data);
24
24
  await args.nodeishFs.writeFile(args.projectPath + ".README.md", readme);
25
+ // eslint-disable-next-line no-console
26
+ // console.log("🔔 migrated project.inlang to directory")
25
27
  };
26
28
  const readme = `
27
29
  # DELETE THE \`project.inlang.json\` FILE
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inlang/sdk",
3
3
  "type": "module",
4
- "version": "0.31.0",
4
+ "version": "0.32.0",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -32,16 +32,16 @@
32
32
  "murmurhash3js": "^3.0.1",
33
33
  "solid-js": "1.6.12",
34
34
  "throttle-debounce": "^5.0.0",
35
- "@inlang/json-types": "1.1.0",
36
35
  "@inlang/language-tag": "1.5.1",
36
+ "@inlang/json-types": "1.1.0",
37
37
  "@inlang/message": "2.1.0",
38
+ "@inlang/message-lint-rule": "1.4.5",
38
39
  "@inlang/module": "1.2.9",
40
+ "@inlang/plugin": "2.4.9",
39
41
  "@inlang/project-settings": "2.4.0",
40
42
  "@inlang/result": "1.1.0",
41
- "@inlang/plugin": "2.4.9",
42
- "@inlang/message-lint-rule": "1.4.5",
43
- "@lix-js/client": "1.2.0",
44
43
  "@inlang/translatable": "1.3.1",
44
+ "@lix-js/client": "1.2.0",
45
45
  "@lix-js/fs": "1.0.0"
46
46
  },
47
47
  "devDependencies": {
package/src/api.ts CHANGED
@@ -80,7 +80,7 @@ export type MessageQueryApi = {
80
80
  }
81
81
  includedMessageIds: Subscribable<Message["id"][]>
82
82
  /*
83
- * getAll is depricated do not use it
83
+ * getAll is deprecated do not use it
84
84
  */
85
85
  getAll: Subscribable<Readonly<Message[]>>
86
86
  update: (args: { where: { id: Message["id"] }; data: Partial<Message> }) => boolean
@@ -34,6 +34,9 @@ export const maybeMigrateToDirectory = async (args: {
34
34
  await args.nodeishFs.mkdir(args.projectPath)
35
35
  await args.nodeishFs.writeFile(`${args.projectPath}/settings.json`, settingsFile.data)
36
36
  await args.nodeishFs.writeFile(args.projectPath + ".README.md", readme)
37
+
38
+ // eslint-disable-next-line no-console
39
+ // console.log("🔔 migrated project.inlang to directory")
37
40
  }
38
41
 
39
42
  const readme = `