lemmy-js-client 0.19.6-alpha.1 → 0.19.6

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,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  export declare const VERSION = "v3";
2
3
  export interface UploadImage {
3
4
  image: File | Buffer;
@@ -10,5 +10,4 @@ export interface CreatePost {
10
10
  nsfw?: boolean;
11
11
  language_id?: LanguageId;
12
12
  custom_thumbnail?: string;
13
- scheduled_publish_time?: number;
14
13
  }
@@ -9,5 +9,4 @@ export interface EditPost {
9
9
  nsfw?: boolean;
10
10
  language_id?: LanguageId;
11
11
  custom_thumbnail?: string;
12
- scheduled_publish_time?: number;
13
12
  }
@@ -340,5 +340,5 @@ export type LemmyErrorType = {
340
340
  } | {
341
341
  error: "cant_delete_site";
342
342
  } | {
343
- error: "post_schedule_time_must_be_in_future";
343
+ error: "url_length_overflow";
344
344
  };
@@ -26,5 +26,4 @@ export interface Post {
26
26
  featured_local: boolean;
27
27
  url_content_type?: string;
28
28
  alt_text?: string;
29
- scheduled_publish_time?: number;
30
29
  }
@@ -13,4 +13,5 @@ export interface Search {
13
13
  listing_type?: ListingType;
14
14
  page?: number;
15
15
  limit?: number;
16
+ post_title_only?: boolean;
16
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.19.6-alpha.1",
4
+ "version": "0.19.6",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",
@@ -19,23 +19,23 @@
19
19
  "url": "git+https://github.com/LemmyNet/lemmy-js-client.git"
20
20
  },
21
21
  "devDependencies": {
22
- "@types/node": "^22.1.0",
23
- "@typescript-eslint/eslint-plugin": "^8.0.0",
24
- "@typescript-eslint/parser": "^8.0.0",
25
- "eslint": "^9.8.0",
26
- "eslint-plugin-prettier": "^5.2.1",
27
- "husky": "^9.1.4",
28
- "lint-staged": "^15.2.7",
29
- "prettier": "^3.3.3",
22
+ "@types/node": "^20.11.19",
23
+ "@typescript-eslint/eslint-plugin": "^7.0.1",
24
+ "@typescript-eslint/parser": "^7.0.1",
25
+ "eslint": "^9.0.0",
26
+ "eslint-plugin-prettier": "^5.1.3",
27
+ "husky": "^9.0.11",
28
+ "lint-staged": "^15.2.2",
29
+ "prettier": "^3.2.5",
30
30
  "prettier-plugin-import-sort": "^0.0.7",
31
- "prettier-plugin-organize-imports": "^4.0.0",
32
- "prettier-plugin-packagejson": "^2.5.1",
31
+ "prettier-plugin-organize-imports": "^3.2.4",
32
+ "prettier-plugin-packagejson": "^2.4.11",
33
33
  "sortpack": "^2.4.0",
34
- "typedoc": "^0.26.5",
35
- "typescript": "^5.5.4",
36
- "typescript-eslint": "^8.0.0"
34
+ "typedoc": "^0.25.8",
35
+ "typescript": "^5.3.3",
36
+ "typescript-eslint": "^7.9.0"
37
37
  },
38
- "packageManager": "pnpm@9.9.0",
38
+ "packageManager": "pnpm@9.1.4",
39
39
  "types": "./dist/index.d.ts",
40
40
  "lint-staged": {
41
41
  "*.{ts,tsx,js}": [