@ronin/compiler 0.12.8-leo-ron-1071-experimental-263 → 0.12.8-leo-ron-1071-experimental-265

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  # RONIN Compiler
2
2
 
3
+ [![Tests](https://github.com/ronin-co/compiler/actions/workflows/validate.yml/badge.svg)](https://github.com/ronin-co/compiler/actions/workflows/validate.yml)
4
+ [![install size](https://packagephobia.com/badge?p=@ronin/compiler)](https://packagephobia.com/result?p=@ronin/compiler)
5
+
3
6
  This package compiles [RONIN queries](https://ronin.co/docs/queries) to [SQLite](https://www.sqlite.org) statements.
4
7
 
5
8
  ## Setup
package/dist/index.d.ts CHANGED
@@ -103,9 +103,24 @@ type CreateQuery = {
103
103
  type AlterQuery = {
104
104
  model: string;
105
105
  to?: Partial<PublicModel>;
106
- create?: Partial<Record<ModelEntityEnum, ModelField | ModelIndex | ModelTrigger | ModelPreset>>;
107
- alter?: Partial<Record<ModelEntityEnum, string>> & {
108
- to: Partial<ModelField | ModelIndex | ModelTrigger | ModelPreset>;
106
+ create?: {
107
+ field?: ModelField;
108
+ index?: ModelIndex;
109
+ trigger?: ModelTrigger;
110
+ preset?: ModelPreset;
111
+ };
112
+ alter?: {
113
+ field?: string;
114
+ to?: Partial<ModelField>;
115
+ } | {
116
+ index?: string;
117
+ to?: Partial<ModelIndex>;
118
+ } | {
119
+ trigger?: string;
120
+ to?: Partial<ModelTrigger>;
121
+ } | {
122
+ preset?: string;
123
+ to?: Partial<ModelPreset>;
109
124
  };
110
125
  drop?: Partial<Record<ModelEntityEnum, string>>;
111
126
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.12.8-leo-ron-1071-experimental-263",
3
+ "version": "0.12.8-leo-ron-1071-experimental-265",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {