@rljson/rljson 0.0.9 → 0.0.11
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.contributors.md +13 -6
- package/dist/README.contributors.md +13 -6
- package/dist/rljson.d.ts +2 -0
- package/dist/rljson.js +42 -1
- package/package.json +1 -1
package/README.contributors.md
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
- [Commit](#commit)
|
|
27
27
|
- [Update dependencies](#update-dependencies)
|
|
28
28
|
- [Increase version](#increase-version)
|
|
29
|
+
- [Push the branch](#push-the-branch)
|
|
29
30
|
- [Create a pull request](#create-a-pull-request)
|
|
30
31
|
- [Wait until PR is merged](#wait-until-pr-is-merged)
|
|
31
32
|
- [Delete feature branch](#delete-feature-branch)
|
|
@@ -157,7 +158,7 @@ Please replace `Commit Message` in the next command by your commit message.
|
|
|
157
158
|
It will also used for branch name and pull request
|
|
158
159
|
|
|
159
160
|
```bash
|
|
160
|
-
export MESSAGE="Add
|
|
161
|
+
export MESSAGE="Add simple example" && \
|
|
161
162
|
export BRANCH=`echo "$MESSAGE" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_]/_/g'` &&\
|
|
162
163
|
git checkout -b $BRANCH
|
|
163
164
|
```
|
|
@@ -171,16 +172,16 @@ Commit your changes
|
|
|
171
172
|
If you only have one thing, execute
|
|
172
173
|
|
|
173
174
|
```bash
|
|
174
|
-
git commit -
|
|
175
|
+
git add . && git commit -m "$MESSAGE"
|
|
175
176
|
```
|
|
176
177
|
|
|
177
178
|
### Update dependencies
|
|
178
179
|
|
|
179
|
-
We aim to work with the latest versions of our dependencies
|
|
180
|
+
We aim to work with the latest versions of our dependencies
|
|
180
181
|
|
|
181
182
|
```bash
|
|
182
183
|
pnpm update --latest &&\
|
|
183
|
-
git commit -
|
|
184
|
+
git commit -m"Update dependencies"
|
|
184
185
|
```
|
|
185
186
|
|
|
186
187
|
### Increase version
|
|
@@ -190,13 +191,19 @@ pnpm version patch --no-git-tag-version && \
|
|
|
190
191
|
git commit -am"Increase version"
|
|
191
192
|
```
|
|
192
193
|
|
|
194
|
+
### Push the branch
|
|
195
|
+
|
|
196
|
+
Use your ID or this git command to push the branch
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
git push -u origin $BRANCH
|
|
200
|
+
```
|
|
201
|
+
|
|
193
202
|
### Create a pull request
|
|
194
203
|
|
|
195
204
|
```bash
|
|
196
|
-
git push -u origin $BRANCH && \
|
|
197
205
|
gh pr create --base main --title "$MESSAGE" --body "" && \
|
|
198
206
|
gh pr merge --auto --squash
|
|
199
|
-
|
|
200
207
|
```
|
|
201
208
|
|
|
202
209
|
### Wait until PR is merged
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
- [Commit](#commit)
|
|
27
27
|
- [Update dependencies](#update-dependencies)
|
|
28
28
|
- [Increase version](#increase-version)
|
|
29
|
+
- [Push the branch](#push-the-branch)
|
|
29
30
|
- [Create a pull request](#create-a-pull-request)
|
|
30
31
|
- [Wait until PR is merged](#wait-until-pr-is-merged)
|
|
31
32
|
- [Delete feature branch](#delete-feature-branch)
|
|
@@ -157,7 +158,7 @@ Please replace `Commit Message` in the next command by your commit message.
|
|
|
157
158
|
It will also used for branch name and pull request
|
|
158
159
|
|
|
159
160
|
```bash
|
|
160
|
-
export MESSAGE="Add
|
|
161
|
+
export MESSAGE="Add simple example" && \
|
|
161
162
|
export BRANCH=`echo "$MESSAGE" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9_]/_/g'` &&\
|
|
162
163
|
git checkout -b $BRANCH
|
|
163
164
|
```
|
|
@@ -171,16 +172,16 @@ Commit your changes
|
|
|
171
172
|
If you only have one thing, execute
|
|
172
173
|
|
|
173
174
|
```bash
|
|
174
|
-
git commit -
|
|
175
|
+
git add . && git commit -m "$MESSAGE"
|
|
175
176
|
```
|
|
176
177
|
|
|
177
178
|
### Update dependencies
|
|
178
179
|
|
|
179
|
-
We aim to work with the latest versions of our dependencies
|
|
180
|
+
We aim to work with the latest versions of our dependencies
|
|
180
181
|
|
|
181
182
|
```bash
|
|
182
183
|
pnpm update --latest &&\
|
|
183
|
-
git commit -
|
|
184
|
+
git commit -m"Update dependencies"
|
|
184
185
|
```
|
|
185
186
|
|
|
186
187
|
### Increase version
|
|
@@ -190,13 +191,19 @@ pnpm version patch --no-git-tag-version && \
|
|
|
190
191
|
git commit -am"Increase version"
|
|
191
192
|
```
|
|
192
193
|
|
|
194
|
+
### Push the branch
|
|
195
|
+
|
|
196
|
+
Use your ID or this git command to push the branch
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
git push -u origin $BRANCH
|
|
200
|
+
```
|
|
201
|
+
|
|
193
202
|
### Create a pull request
|
|
194
203
|
|
|
195
204
|
```bash
|
|
196
|
-
git push -u origin $BRANCH && \
|
|
197
205
|
gh pr create --base main --title "$MESSAGE" --body "" && \
|
|
198
206
|
gh pr merge --auto --squash
|
|
199
|
-
|
|
200
207
|
```
|
|
201
208
|
|
|
202
209
|
### Wait until PR is merged
|
package/dist/rljson.d.ts
CHANGED
|
@@ -166,5 +166,7 @@ export interface Rljson extends Json {
|
|
|
166
166
|
[tableId: TableName]: TableType | string;
|
|
167
167
|
}
|
|
168
168
|
export declare const exampleRljson: () => Rljson;
|
|
169
|
+
export declare const exampleBinary: () => Rljson;
|
|
169
170
|
export declare const exampleRljsonEmpty: () => Rljson;
|
|
170
171
|
export declare const exampleRljsonWithErrors: () => Rljson;
|
|
172
|
+
export declare const exampleRljsonWithMultipleRows: () => Rljson;
|
package/dist/rljson.js
CHANGED
|
@@ -6,6 +6,17 @@ const exampleRljson = () => ({
|
|
|
6
6
|
_data: [exampleJsonObject()]
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
+
const exampleBinary = () => ({
|
|
10
|
+
table: {
|
|
11
|
+
_type: "properties",
|
|
12
|
+
_data: [
|
|
13
|
+
{ a: 0, b: 0 },
|
|
14
|
+
{ a: 0, b: 1 },
|
|
15
|
+
{ a: 1, b: 0 },
|
|
16
|
+
{ a: 1, b: 1 }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
});
|
|
9
20
|
const exampleRljsonEmpty = () => ({});
|
|
10
21
|
const exampleRljsonWithErrors = () => ({
|
|
11
22
|
brok$en: {
|
|
@@ -13,8 +24,38 @@ const exampleRljsonWithErrors = () => ({
|
|
|
13
24
|
_data: []
|
|
14
25
|
}
|
|
15
26
|
});
|
|
27
|
+
const exampleRljsonWithMultipleRows = () => ({
|
|
28
|
+
table: {
|
|
29
|
+
_type: "properties",
|
|
30
|
+
_data: [
|
|
31
|
+
{
|
|
32
|
+
string: "str0",
|
|
33
|
+
boolean: true,
|
|
34
|
+
number: 1,
|
|
35
|
+
array: [1, "str0", true, { a: { b: "c" } }],
|
|
36
|
+
object: { a: { b: "c" } }
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
string: "str1",
|
|
40
|
+
boolean: true,
|
|
41
|
+
number: 1,
|
|
42
|
+
array: [1, "str1", true, { a: { b: "c" } }],
|
|
43
|
+
object: { a: { b: "c" } }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
string: "str2",
|
|
47
|
+
boolean: false,
|
|
48
|
+
number: 1,
|
|
49
|
+
array: [1, "str1", true, { a: { b: "c" } }],
|
|
50
|
+
object: { d: { e: "f" } }
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
});
|
|
16
55
|
export {
|
|
56
|
+
exampleBinary,
|
|
17
57
|
exampleRljson,
|
|
18
58
|
exampleRljsonEmpty,
|
|
19
|
-
exampleRljsonWithErrors
|
|
59
|
+
exampleRljsonWithErrors,
|
|
60
|
+
exampleRljsonWithMultipleRows
|
|
20
61
|
};
|