Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update all non-major dependencies #25

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 30, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Type Update
@cloudflare/workers-types ^4.20231218.0 -> ^4.20240129.0 age adoption passing confidence devDependencies minor
@growthbook/growthbook (source) ^0.31.0 -> ^0.32.0 age adoption passing confidence devDependencies minor
@libsql/client ^0.3.6 -> ^0.4.2 age adoption passing confidence devDependencies minor
@newrelic/browser-agent (source) ^1.251.0 -> ^1.251.1 age adoption passing confidence devDependencies patch
@nuxt/ui (source) ^2.11.1 -> ^2.12.3 age adoption passing confidence devDependencies patch
@simplewebauthn/browser (source) ^8.3.4 -> ^8.3.7 age adoption passing confidence devDependencies patch
@simplewebauthn/server (source) ^8.3.6 -> ^8.3.7 age adoption passing confidence devDependencies patch
@tanstack/query-core (source) ^5.17.4 -> ^5.17.19 age adoption passing confidence devDependencies patch
@tanstack/query-persist-client-core (source) ^5.17.4 -> ^5.17.19 age adoption passing confidence devDependencies patch
@tanstack/vue-query (source) ^5.17.4 -> ^5.17.19 age adoption passing confidence devDependencies patch
@unocss/reset ^0.58.3 -> ^0.58.4 age adoption passing confidence devDependencies patch
@vite-pwa/assets-generator ^0.0.10 -> ^0.2.3 age adoption passing confidence devDependencies minor
@vueuse/core (source) ^10.7.1 -> ^10.7.2 age adoption passing confidence devDependencies patch
@vueuse/integrations (source) ^10.7.1 -> ^10.7.2 age adoption passing confidence devDependencies patch
@vueuse/nuxt (source) ^10.7.1 -> ^10.7.2 age adoption passing confidence devDependencies patch
amannn/action-semantic-pull-request v5.2.0 -> v5.4.0 age adoption passing confidence action minor
better-sqlite3 ^9.2.2 -> ^9.3.0 age adoption passing confidence devDependencies patch
dotenv ^16.3.1 -> ^16.4.1 age adoption passing confidence devDependencies minor
drizzle-kit ^0.19.13 -> ^0.20.13 age adoption passing confidence devDependencies minor
drizzle-orm ^0.29.0 -> ^0.29.3 age adoption passing confidence devDependencies patch
firebase (source, changelog) ^10.7.1 -> ^10.7.2 age adoption passing confidence devDependencies patch
vue-tsc (source) ^1.8.22 -> ^1.8.27 age adoption passing confidence devDependencies patch
vuefire ^3.1.17 -> ^3.1.22 age adoption passing confidence devDependencies patch

Release Notes

cloudflare/workerd (@​cloudflare/workers-types)

v4.20240129.0

Compare Source

growthbook/growthbook (@​growthbook/growthbook)

v0.32.0

Compare Source

  • Fix bug when visual editor loaded before document.body was available
  • Sticky Bucketing support with built-in implementations for persisting in localStorage, cookies (both browser and Node.js), and Redis. Off by default, an implementation must be passed into the GrowthBook constructor to enable.
  • The following methods are now async and return a Promise: setAttributes, setAttributeOverrides, setForcedVariations, setURL. No code changes are required since these all returned void prior to this.
libsql/libsql-client-ts (@​libsql/client)

v0.4.2

Compare Source

v0.4.1

Compare Source

v0.4.0

Compare Source

  • Update hrana-client package to 0.5.6.
  • Add a @libsql/client-wasm package.
  • Fix Bun on Linux/arm64.
newrelic/newrelic-browser-agent (@​newrelic/browser-agent)

v1.251.1

Compare Source

Bug Fixes
  • Fix deferred Session Replay payloads (#​868) (f69e4b0)
  • Pass unload options to simultaneous harvests in Session Replay (#​870) (655aa5d)
TanStack/query (@​tanstack/query-core)

v5.17.19

Compare Source

Version 5.17.19 - 1/20/2024, 2:40 PM

Changes

Fix

Packages

unocss/unocss (@​unocss/reset)

v0.58.4

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub
vite-pwa/assets-generator (@​vite-pwa/assets-generator)

v0.2.3

Compare Source

   🚀 Features
    View changes on GitHub

v0.2.2

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v0.2.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v0.2.0

Compare Source

   🚨 Breaking Changes
    View changes on GitHub

v0.1.0

Compare Source

   🚨 Breaking Changes
    View changes on GitHub

v0.0.11

Compare Source

No significant changes

    View changes on GitHub
amannn/action-semantic-pull-request (amannn/action-semantic-pull-request)

v5.4.0

Compare Source

Features

v5.3.0

Compare Source

Features
motdotla/dotenv (dotenv)

v16.4.1

Compare Source

  • Patch support for array as path option #​797

v16.4.0

Compare Source

  • Add error.code to error messages around .env.vault decryption handling #​795
  • Add ability to find .env.vault file when filename(s) passed as an array #​784
drizzle-team/drizzle-kit-mirror (drizzle-kit)

v0.20.13: 0.20.13

Compare Source

v0.20.12: 0.20.12

Compare Source

  • Made schemaTo optional during the serialize step, preventing unnecessary drop+create foreign key statements from appearing.

  • Fixed an issue: when using a barrel file, drizzle-kit was exporting duplicated tables, leading to an error with multiple indexes having the same name. It should now remove duplicates and function as expected

v0.20.11: 0.20.11

Compare Source

  • 🐛 [BUG]: how to recover from snapshot.json data is malformed #​1554

v0.20.10: 0.20.10

Compare Source

  • 🐛 [BUG]: drizzle-kit generates incorrect foreign key references to a table from a different schema when using pgSchema #​636
  • 🐛 Introspect error #​277

v0.20.9: 0.20.9

Compare Source

  • Local Drizzle Studio proper support for Safari with mkcert
  • Remove wrangler from prod deps

v0.20.8: 0.20.8

Compare Source

Bug Fixes

  • Fixed introspect and push for PlanetScale. A newly added feature to PlanetScale was not functioning properly with the 'drizzle-kit introspect' and 'push' commands, failing to retrieve foreign keys from a database. This issue should now be resolved

New Drivers

🎉 Expo SQLite Driver is available

For starting with Expo SQLite Driver, you need to install expo-sqlite and drizzle-orm packages.

npm install drizzle-orm expo-sqlite@next

Then, you can use it like this:

import { drizzle } from "drizzle-orm/expo-sqlite";
import { openDatabaseSync } from "expo-sqlite/next";

const expoDb = openDatabaseSync("db.db");

const db = drizzle(expoDb);

await db.select().from(...)...

// or

db.select().from(...).then(...);

// or

db.select().from(...).all();

If you want to use Drizzle Migrations, you need to update babel and metro configuration files.

  1. Install babel-plugin-inline-import package.
npm install babel-plugin-inline-import
  1. Update babel.config.js and metro.config.js files.

babel.config.js

module.exports = function(api) {
  api.cache(true);

  return {
    presets: ['babel-preset-expo'],
+   plugins: [["inline-import", { "extensions": [".sql"] }]]
  };
};

metro.config.js

const { getDefaultConfig } = require('expo/metro-config');

/** @​type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);

+config.resolver.sourceExts.push('sql');

module.exports = config;
  1. Create drizzle.config.ts file in your project root folder.
import type { Config } from 'drizzle-kit';

export default {
	schema: './db/schema.ts',
	out: './drizzle',
	driver: 'expo',
} satisfies Config;

After creating schema file and drizzle.config.ts file, you can generate migrations like this:

npx drizzle-kit generate:sqlite

Then you need to import migrations.js file in your App.tsx file from ./drizzle folder and use hook useMigrations or migrate function.

import { drizzle } from "drizzle-orm/expo-sqlite";
import { openDatabaseSync } from "expo-sqlite/next";
import { useMigrations } from 'drizzle-orm/expo-sqlite/migrator';
import migrations from './drizzle/migrations';

const expoDb = openDatabaseSync("db.db");

const db = drizzle(expoDb);

export default function App() {
    const { success, error } = useMigrations(db, migrations);

    if (error) {
        return (
            <View>
                <Text>Migration error: {error.message}</Text>
            </View>
        );
    }

    if (!success) {
        return (
            <View>
                <Text>Migration is in progress...</Text>
            </View>
        );
    }

    return ...your application component;
}

v0.20.7: 0.20.7

Compare Source

Bug fixes

  • BUG drizzle-kit introspect:mysql from Planetscale db returns wrong primary key #​216
  • BUG: v0.20.2 push:mysql error: there can be only one auto column and it must be defined as a key #​234
  • Fixed dropping all primary keys and creating them 1 more time

Improvements

  • Check names for indexes and notify if you have specified the same index names within the schema.
  • Verify that auto-increment can only be created for primary keys in MySQL

v0.20.6

Compare Source

v0.20.5

Compare Source

v0.20.4

Compare Source

v0.20.3

Compare Source

v0.20.2

Compare Source

v0.20.1

Compare Source

v0.20.0: 0.20.0

Compare Source

Drizzle ORM version 0.29.0 will require a minimum Drizzle Kit version of 0.20.0, and vice versa. Therefore, when upgrading to a newer version of Drizzle ORM, you will also need to upgrade Drizzle Kit. This may result in some breaking changes throughout the versions, especially if you need to upgrade Drizzle Kit and your Drizzle ORM version is older than <0.28.0

New Features

New way to define drizzle.config using defineConfig function

import { defineConfig } from 'drizzle-kit/utils'

export default defineConfig({
  schema: "./schema.ts",
  out: "./drizzle",
  driver: "..",
  dbCredentials: {
    // connection
  },
  verbose: true,
  strict: true,
})

Possibility to access Cloudflare D1 with Drizzle Studio using wrangler.toml file

You can now use Drizzle Studio with your D1 database. Please note that it may be slow at times because Drizzle Studio utilizes Wrangler CLI calls to perform data selection, updates, deletions, and insertions. The speed of these operations depends on the performance of Wrangler CLI calls.

To use Drizzle Studio with the D1 database, you need to provide the file path to your wrangler.toml file and specify the dbName you are using in Cloudflare D1

import { defineConfig } from 'drizzle-kit/utils'

export default defineConfig({
  schema: "./schema.ts",
  out: "./drizzle",
  driver: "d1",
  dbCredentials: {
    wranglerConfigPath: 'wrangler.toml',
    dbName: 'd1-test'
  },
  verbose: true,
  strict: true,
})

And then run drizzle-kit studio

Note: make sure you have wrangler cli installed globally or inside your project and you invoked wrangler login before running studio

Drizzle Studio is migrating to https://local.drizzle.studio/

Previously, Drizzle Studio used 127.0.0.1:4983 as the default host and port for the web page. Currently, Drizzle Studio will always be hosted on https://local.drizzle.studio/, connecting to the backend at 127.0.0.1:4983. You can modify the host and port for the backend server by using the --host and --port options in drizzle-kit studio.

local.drizzle.studio provides the ability to ship updates to the Drizzle Studio web UI immediately, eliminating the need for constant drizzle-kit upgrades

bigint unsigned support

This option is now available in the introspect, push, and generate commands.

primaryKeys and foreignKeys now can have custom names

This option is now available in the introspect, push, and generate commands.

Environment variables are now fetched automatically

As mentioned many times, you can finally skip fetching environment variables to use with the drizzle.config file. Drizzle Kit will handle this process automatically.

Drizzle Studio Updates

  • Refresh button for the view inside a table.
  • Possibility to choose schemas for Postgres. For MySQL and SQLite, public will be the default, and the only choice.

Improvements

  • remove libsql_wasm_func_table from sqlite introspect and push
  • Handle primaryKey columns order for composite constraints

Bug Fixes

  • Fix the case, when having turso or libsql driver user was seeing an error with no better-sqlite3 dependency
  • Add tableFilters to cli options in all push commands
  • Fix dropping unique indexes syntax for push and generate command

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8d63e3f
Status: ✅  Deploy successful!
Preview URL: https://3d277b12.sstaa.pages.dev
Branch Preview URL: https://renovate-all-minor-patch.sstaa.pages.dev

View logs

@qin-guan qin-guan merged commit 688ee18 into main Jan 30, 2024
2 of 3 checks passed
@qin-guan qin-guan deleted the renovate/all-minor-patch branch January 30, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant