openSenseMap / frontend

New frontend for openSenseMap
https://beta.opensensemap.org
0 stars 0 forks source link

build(deps): bump drizzle-orm from 0.32.2 to 0.36.0 #430

Open dependabot[bot] opened 1 day ago

dependabot[bot] commented 1 day ago

Bumps drizzle-orm from 0.32.2 to 0.36.0.

Release notes

Sourced from drizzle-orm's releases.

0.36.0

This version of drizzle-orm requires drizzle-kit@0.27.0 to enable all new features

New Features

The third parameter in Drizzle ORM becomes an array

The object API is still available but deprecated

Instead of this

pgTable('users', {
    id: integer().primaryKey(),
}, (t) => ({
    index: index('test').on(t.id),
}));

You can now do this

pgTable('users', {
    id: integer().primaryKey(),
}, (t) => [index('test').on(t.id)]);

Row-Level Security (RLS)

With Drizzle, you can enable Row-Level Security (RLS) for any Postgres table, create policies with various options, and define and manage the roles those policies apply to.

Drizzle supports a raw representation of Postgres policies and roles that can be used in any way you want. This works with popular Postgres database providers such as Neon and Supabase.

In Drizzle, we have specific predefined RLS roles and functions for RLS with both database providers, but you can also define your own logic.

Enable RLS

If you just want to enable RLS on a table without adding policies, you can use .enableRLS()

As mentioned in the PostgreSQL documentation:

If no policy exists for the table, a default-deny policy is used, meaning that no rows are visible or can be modified. Operations that apply to the whole table, such as TRUNCATE and REFERENCES, are not subject to row security.

import { integer, pgTable } from 'drizzle-orm/pg-core';

export const users = pgTable('users', { id: integer(), }).enableRLS();

If you add a policy to a table, RLS will be enabled automatically. So, there’s no need to explicitly enable RLS when adding policies to a table.

... (truncated)

Commits
  • a21c8e3 Merge pull request #3270 from drizzle-team/beta
  • 5ea5a84 Bump version, remove createDrizzle
  • 4b200a2 Format json
  • 1ee8ed3 re-trigger ci
  • 098afba Save exact version for attw
  • 20c8e02 Import from db.ts
  • 6490223 Add Supabase RLS createDrizzle function
  • e62c333 Fix lint and tests for crudPolicy
  • 80fe721 Merge pull request #3242 from davidgomes/neon-rls-fixes
  • 5601a7d fix: allows crudPolicy to skip generating policies, adds TSDoc to crudPolicy ...
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
socket-security[bot] commented 1 day ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/drizzle-orm@0.36.0 None +1 7.67 MB dankochetov

🚮 Removed packages: npm/drizzle-orm@0.32.2

View full report↗︎