@t1mmen/srtd 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/components/Branding.js +1 -1
- package/dist/components/Branding.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Say hello to `srtd`.
|
|
|
37
37
|
- **Live Reload**: Changes to your SQL templates instantly update your local database
|
|
38
38
|
- **Templates as source of truth**: Templates are the source of (non-mutable) database objects
|
|
39
39
|
- **Just SQL**: Templates as just SQL, and `build` to standard [Supabase](https://supabase.com) migrations when you're ready to ship
|
|
40
|
-
- **Sane code reviews**: Templates evolve like regular code,
|
|
40
|
+
- **Sane code reviews**: Templates evolve like regular code, with diffs in PR's working `git blame`.
|
|
41
41
|
- **Developer Friendly**: Interactive CLI with visual feedback for all operations.
|
|
42
42
|
|
|
43
43
|
Built specifically for projects using the standard [Supabase](https://supabase.com) stack (but probably works alright for other Postgres-based projects, too).
|
|
@@ -179,7 +179,7 @@ Without templates, the smallest change to a function would show up as a complete
|
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
✅ Triggers
|
|
182
|
-
```
|
|
182
|
+
```diff
|
|
183
183
|
DROP TRIGGER IF EXISTS on_new_user ON auth.users;
|
|
184
184
|
DROP FUNCTION IF EXISTS public.setup_new_user;
|
|
185
185
|
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --no-warnings
|
|
2
2
|
import Pastel from 'pastel';
|
|
3
3
|
import updateNotifier from 'update-notifier';
|
|
4
|
-
import packageJson from '../package.json'
|
|
4
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
5
5
|
updateNotifier({ pkg: packageJson }).notify();
|
|
6
6
|
const app = new Pastel({
|
|
7
7
|
importMeta: import.meta,
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,WAAW,MAAM,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,WAAW,MAAM,iBAAiB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEhE,cAAc,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAE9C,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC,IAAI;CACxB,CAAC,CAAC;AAEH,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Badge } from '@inkjs/ui';
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import packageJson from '../../package.json'
|
|
4
|
+
import packageJson from '../../package.json' with { type: 'json' };
|
|
5
5
|
import { useDatabaseConnection } from '../hooks/useDatabaseConnection.js';
|
|
6
6
|
import { COLOR_ERROR, COLOR_SUPABASE, COLOR_WARNING } from './customTheme.js';
|
|
7
7
|
export default function Branding({ subtitle }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branding.js","sourceRoot":"","sources":["../../src/components/Branding.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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AC,IAAI,QAAC,KAAK,EAAE,cAAc,QAEzB;;gBACC,GAAG;gBACX,oBAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,cAAc,QAEzB;6BAEF,CACR;YACD,oBAAC,IAAI,IAAC,QAAQ;;gBAAI,WAAW,CAAC,OAAO,CAAQ,CACzC,CACF,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t1mmen/srtd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Supabase Repeatable Template Definitions (srtd): 🪄 Live-reloading SQL templates for Supabase DX. Make your database changes reviewable and migrations maintainable! 🚀",
|
|
6
6
|
"bin": {
|