File tree Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 30
30
uses : actions/checkout@v3
31
31
with :
32
32
token : ${{ secrets.GITHUB_TOKEN }}
33
- # Setup .npmrc file to publish to npm
34
33
- name : Setup Node.JS
35
34
uses : actions/setup-node@v4
36
35
with :
Original file line number Diff line number Diff line change 12
12
matrix :
13
13
os : [ubuntu-latest, windows-latest]
14
14
node-version :
15
- - 20.10.0
15
+ - 20.x
16
16
- 21.x
17
17
steps :
18
18
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
1
# @adityadarma/adonis-datatables
2
2
3
- <br />
4
-
5
3
[ ![ gh-workflow-image]] [ gh-workflow-url ] [ ![ npm-image]] [ npm-url ] [ ![ npm-downloads]] [ npm-downloads ] ![ ] [ typescript-image ] [ ![ license-image]] [ license-url ]
6
4
7
5
Adonis datatable is an inspiration from laravel datatable. It is heavily inspired by the PHP library [ Laravel Datatables] ( https://yajrabox.com/docs/laravel-datatables ) and even share some code.
Original file line number Diff line number Diff line change 9
9
10
10
export { configure } from './configure.js'
11
11
export { stubsRoot } from './stubs/main.js'
12
- export { defineConfig } from './src/define_config.js'
12
+ export { defineConfig } from './src/define_config/index .js'
Original file line number Diff line number Diff line change 102
102
"tagName" : " v${version}"
103
103
},
104
104
"github" : {
105
- "release" : false
105
+ "release" : true
106
106
},
107
107
"npm" : {
108
108
"publish" : true ,
112
112
"@release-it/conventional-changelog" : {
113
113
"preset" : {
114
114
"name" : " angular"
115
- }
115
+ },
116
+ "releaseRules" : [
117
+ {
118
+ "type" : " breaking" ,
119
+ "release" : " major"
120
+ },
121
+ {
122
+ "type" : " feat" ,
123
+ "release" : " minor"
124
+ },
125
+ {
126
+ "type" : " fix" ,
127
+ "release" : " patch"
128
+ }
129
+ ]
116
130
}
117
131
}
118
132
},
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { Exception } from '@adonisjs/core/exceptions'
2
2
import LucidDataTable from './engines/lucid_datatable.js'
3
3
import DatabaseDataTable from './engines/database_datatable.js'
4
4
import ObjectDataTable from './engines/object_datatable.js'
5
- import { Collection } from 'collect.js'
6
5
import { DatabaseQueryBuilderContract , Dictionary } from '@adonisjs/lucid/types/querybuilder'
7
6
import { LucidModel , ModelQueryBuilderContract } from '@adonisjs/lucid/types/model'
8
7
import { DataTableAbstract } from './datatable_abstract.js'
@@ -34,7 +33,7 @@ export default class Datatables {
34
33
return DatabaseDataTable . create ( source )
35
34
}
36
35
37
- static object ( source : Record < string , any > [ ] | Collection < Record < string , any > > ) {
38
- return ObjectDataTable . create ( source as Collection < Record < string , any > > )
36
+ static object ( source : Record < string , any > [ ] ) {
37
+ return ObjectDataTable . create ( source )
39
38
}
40
39
}
Original file line number Diff line number Diff line change 1
- import { Config } from './types/index.js'
1
+ import { Config } from '.. /types/index.js'
2
2
3
3
export function defineConfig ( config : Config ) : Config {
4
4
return config
You can’t perform that action at this time.
0 commit comments