From e14dab12b9dd21afe014705ea5081effb95bacb9 Mon Sep 17 00:00:00 2001 From: anpigon Date: Tue, 13 Sep 2022 22:33:01 +0900 Subject: [PATCH] chore(release): 0.5.8 --- CHANGELOG.md | 2 ++ manifest.json | 4 ++-- package.json | 2 +- src/apis/google_books_api.test.ts | 2 +- src/apis/google_books_api.ts | 2 +- src/settings/settings.ts | 9 ++++----- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09ae400..b8fb641 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.5.8](https://github.com/anpigon/obsidian-book-search-plugin/compare/0.5.8-beta.2...0.5.8) (2022-09-13) + ### [0.5.7](https://github.com/anpigon/obsidian-book-search-plugin/compare/0.5.6...0.5.7) (2022-09-03) diff --git a/manifest.json b/manifest.json index 1989c14..ea21129 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "obsidian-book-search-plugin", "name": "Book Search", - "version": "0.5.7", + "version": "0.5.8", "minAppVersion": "0.15.0", "description": "Helps you find books and create notes.", "author": "anpigon", "authorUrl": "https://github.com/anpigon", "isDesktopOnly": false -} \ No newline at end of file +} diff --git a/package.json b/package.json index f18eba7..6629295 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-book-search-plugin", - "version": "0.5.7", + "version": "0.5.8", "description": "This is a plugin to help you create book notes.", "homepage": "https://anpigon.github.io/obsidian-book-search-plugin/", "main": "main.js", diff --git a/src/apis/google_books_api.test.ts b/src/apis/google_books_api.test.ts index 1e840cc..5e304ca 100644 --- a/src/apis/google_books_api.test.ts +++ b/src/apis/google_books_api.test.ts @@ -49,7 +49,7 @@ describe('Book creation', () => { canonicalVolumeLink: 'https://play.google.com/store/books/details?id=QVjPsd1UukEC', }; - const api: GoogleBooksApi = new GoogleBooksApi(); + const api: GoogleBooksApi = new GoogleBooksApi('default'); const book: Book = api.createBookItem(volumeInfo); it('Title', () => { diff --git a/src/apis/google_books_api.ts b/src/apis/google_books_api.ts index 0cf22e3..2124a32 100644 --- a/src/apis/google_books_api.ts +++ b/src/apis/google_books_api.ts @@ -3,7 +3,7 @@ import { apiGet, BaseBooksApiImpl } from '@apis/base_api'; import { GoogleBooksResponse, VolumeInfo } from './models/google_books_response'; export class GoogleBooksApi implements BaseBooksApiImpl { - constructor(private readonly localePreference: string,) {} + constructor(private readonly localePreference: string) {} async getByQuery(query: string) { try { diff --git a/src/settings/settings.ts b/src/settings/settings.ts index a31a9a9..376cc5f 100644 --- a/src/settings/settings.ts +++ b/src/settings/settings.ts @@ -134,6 +134,7 @@ export class BookSearchSettingTab extends PluginSettingTab { // Service Provider let serviceProviderExtraSettingButton: HTMLElement; + // eslint-disable-next-line prefer-const let preferredLocaleDropdownSetting: Setting; const hideServiceProviderExtraSettingButton = () => { serviceProviderExtraSettingButton.addClass('book-search-plugin__hide'); @@ -151,9 +152,7 @@ export class BookSearchSettingTab extends PluginSettingTab { preferredLocaleDropdownSetting.settingEl.removeClass('book-search-plugin__hide'); } }; - const toggleServiceProviderExtraSettings = ( - serviceProvider: ServiceProvider = this.settings?.serviceProvider, - ) => { + const toggleServiceProviderExtraSettings = (serviceProvider: ServiceProvider = this.settings?.serviceProvider) => { if (serviceProvider === ServiceProvider.naver) { showServiceProviderExtraSettingButton(); hideServiceProviderExtraSettingDropdown(); @@ -191,7 +190,7 @@ export class BookSearchSettingTab extends PluginSettingTab { .addDropdown(dropDown => { const defaultLocale = window.moment.locale(); dropDown.addOption(defaultLocale, `${defaultLocale} (Default Locale)`); - window.moment.locales().forEach((locale) => { + window.moment.locales().forEach(locale => { dropDown.addOption(locale, locale); }); const setValue = this.settings.localePreference; @@ -205,7 +204,7 @@ export class BookSearchSettingTab extends PluginSettingTab { this.settings.localePreference = newValue; await this.plugin.saveSettings(); }); - }) + }); // Frontmatter Settings const formatterSettingsChildren: Setting[] = [];