Skip to content

Commit

Permalink
Merge pull request #136 from ChenglongMa/dev-3.0.6+
Browse files Browse the repository at this point in the history
Release 3.0.7
  • Loading branch information
ChenglongMa authored Jan 10, 2025
2 parents 5049779 + 1f376a7 commit 4968a9f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 35 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zoplicate",
"version": "3.0.6",
"version": "3.0.7",
"description": "Detect and manage duplicate items in Zotero.",
"config": {
"addonName": "Zoplicate",
Expand Down Expand Up @@ -45,7 +45,7 @@
"prettier": "^3.4.2",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"zotero-plugin-scaffold": "^0.1.7",
"zotero-types": "3.1.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/db/nonDuplicates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class NonDuplicatesDB extends SQLiteDB {
}

private async createNonDuplicateTable() {
// @ts-ignore
await this._db.queryAsync(
`CREATE TABLE IF NOT EXISTS ${this.tables.nonDuplicates}
(
Expand All @@ -28,7 +29,6 @@ export class NonDuplicatesDB extends SQLiteDB {
libraryID INTEGER,
PRIMARY KEY (itemID, itemID2)
);`,
{},
);
}

Expand Down
24 changes: 0 additions & 24 deletions typings/relations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,6 @@ declare namespace Zotero {
function updateUser(fromUserID: string, toUserID: string): Promise<void>;
function purge(): Promise<void>;
}
// static class Relations {
// static readonly relatedItemPredicate: _ZoteroTypes.RelationsPredicate;
// static readonly linkedObjectPredicate: _ZoteroTypes.RelationsPredicate;
// static readonly replacedItemPredicate: _ZoteroTypes.RelationsPredicate;
//
// private static _namespaces: { [key: string]: string };
// private static _types: string[];
// private static _subjectsByPredicateIDAndObject: { [key: string]: any };
// private static _subjectPredicatesByObject: { [key: string]: any };
//
// static init(): Promise<void>;
//
// static register(objectType: string, subjectID: string, predicate: string, object: string): void;
// static unregister(objectType: string, subjectID: string, predicate: string, object: string): void;
//
// static getByPredicateAndObject(objectType: string, predicate: string, object: string): Promise<Zotero.Item[]>;
// static getByObject(objectType: string, object: string): Promise<{ subject: Zotero.DataObject; predicate: string }[]>;
//
// static copyObjectSubjectRelations(fromObject: Zotero.DataObject, toObject: Zotero.DataObject): Promise<void>;
// static updateUser(fromUserID: string, toUserID: string): Promise<void>;
// static purge(): Promise<void>;
//
// private static _getPrefixAndValue(uri: string): [string, string];
// }

namespace RelationPredicates {
function getID(predicate: string): number;
Expand Down
2 changes: 1 addition & 1 deletion update-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"[email protected]": {
"updates": [
{
"version": "3.0.6",
"version": "3.0.7",
"update_link": "https://github.com/ChenglongMa/zoplicate/releases/latest/download/zoplicate.xpi",
"applications": {
"zotero": {
Expand Down
2 changes: 1 addition & 1 deletion update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"[email protected]": {
"updates": [
{
"version": "3.0.6",
"version": "3.0.7",
"update_link": "https://github.com/ChenglongMa/zoplicate/releases/latest/download/zoplicate.xpi",
"applications": {
"zotero": {
Expand Down

0 comments on commit 4968a9f

Please sign in to comment.