Skip to content

Next#120

Merged
BlackTiger007 merged 79 commits intomainfrom
next
Dec 8, 2024
Merged

Next#120
BlackTiger007 merged 79 commits intomainfrom
next

Conversation

@BlackTiger007
Copy link
Copy Markdown
Member

No description provided.

BlackTiger007 and others added 30 commits December 6, 2024 22:41
… of string

- Added `arrayBufferToString` helper to handle migration file reading as strings.
- Moved `dbMigrations` retrieval outside the loop to improve efficiency.
- Added `updated` column with default 0 to `actors` and `collection` tables.
- Created unique indices:
  - `actors_id_unique` on `actors(id)`
  - `collection_id_unique` on `collection(id)`
  - `settings_id_unique` on `settings(id)`
- Updated TypeScript definitions to reflect the schema changes.
…ions

- Movies are now checked for their membership in a collection.
- If a collection exists but is not yet in the database, it will be added.
- The `updated` field for movies is set to the current time if it hasn't been updated yet.
- Movies are only updated again if the `updated` date is older than the defined period.
…m the database

- A new function `getAllCollections` is added to fetch all collections from the database.
- The function uses a database query to select all records from the `collections` table.
- Errors are logged if the query fails.
…he defined time span

- A new function `updateCollection` is added to update collections in the database.
- The function checks if the "updated" field is missing or outdated based on the defined time span (`WEEKS_IN_MILLIS`).
- If the "updated" field is missing, it sets the current date. If it's outdated, it fetches the latest collection data from the TMDb API and updates the collection in the database.
- Errors are logged if the update fails.
- Removed the unused `readTextFile` import from `@tauri-apps/plugin-fs` to fix the linting error (`@typescript-eslint/no-unused-vars`).
- Disabled the `svelte/no-at-html-tags` linting rule for the `{@html}` directive to prevent false positives for safe HTML rendering.
Bumps [tauri-plugin-updater](https://github.com/tauri-apps/plugins-workspace) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](tauri-apps/plugins-workspace@fs-v2.0.2...fs-v2.1.0)

---
updated-dependencies:
- dependency-name: tauri-plugin-updater
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [drizzle-kit](https://github.com/drizzle-team/drizzle-orm) from 0.27.2 to 0.29.1.
- [Release notes](https://github.com/drizzle-team/drizzle-orm/releases)
- [Commits](https://github.com/drizzle-team/drizzle-orm/compare/drizzle-kit@0.27.2...drizzle-kit@0.29.1)

---
updated-dependencies:
- dependency-name: drizzle-kit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@tauri-apps/plugin-sql](https://github.com/tauri-apps/plugins-workspace) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](tauri-apps/plugins-workspace@os-v2.0.1...fs-v2.0.2)

---
updated-dependencies:
- dependency-name: "@tauri-apps/plugin-sql"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [marked](https://github.com/markedjs/marked) from 12.0.2 to 15.0.3.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json)
- [Commits](markedjs/marked@v12.0.2...v15.0.3)

---
updated-dependencies:
- dependency-name: marked
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.15 to 3.4.16.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.16/CHANGELOG.md)
- [Commits](tailwindlabs/tailwindcss@v3.4.15...v3.4.16)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ri-plugin-updater-2.1.0

chore(deps): bump tauri-plugin-updater from 2.0.2 to 2.1.0 in /src-tauri
…e-kit-0.29.1

chore(deps-dev): bump drizzle-kit from 0.27.2 to 0.29.1
BlackTiger007 and others added 23 commits December 8, 2024 11:41
…orepo

chore(deps): update dependency typescript-eslint to ^8.16.0
chore(deps): update dependency svelte-check to ^4.1.0
fix(deps): update dependency drizzle-orm to ^0.36.4
chore(deps): update dependency typescript to ^5.7.2
fix(deps): update rust crate tauri-plugin-fs to 2.1.0
fix(deps): update dependency drizzle-orm to ^0.37.0
fix(deps): update dependency @tauri-apps/plugin-fs to ^2.0.3
…orepo

chore(deps): update dependency typescript-eslint to ^8.17.0
chore(deps): update dependency svelte-check to ^4.1.1
@BlackTiger007 BlackTiger007 self-assigned this Dec 8, 2024
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 8, 2024

@BlackTiger007 BlackTiger007 merged commit 8e917a0 into main Dec 8, 2024
@BlackTiger007 BlackTiger007 deleted the next branch December 8, 2024 13:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 8, 2024

🎉 This PR is included in version 0.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant