Releases: br14n-sol/query-builder-for-driveapi
Releases · br14n-sol/query-builder-for-driveapi
v3.0.0
Compare
Sorry, something went wrong.
No results found
3.0.0 (2024-06-26)
⚠ BREAKING CHANGES
The package now only supports ES modules. Use the previous version v2.0.2 if you need support for CommonJS environments. (4b85395 , f267d28 )
The minimum required version of Node.js went from 14.0.0 to 18.20.3 (8c8fd80 )
The names of all methods have changed, see the detailed changes in the table below. (985b872 , 4df8732 )
Old Method
New Method
not()
negate()
getByCollection()
collection()
getByFileName()
fileName()
getByContent()
content()
getByFileType()
fileType()
getByCreatedAt()
createdAt()
getByUpdatedAt()
updatedAt()
getByVisibility()
visibility()
getByPublicProp()
properties()
getByPrivateProp()
appProperties()
isTrashed()
trashed()
isStarred()
starred()
isHidden()
hidden()
Features
Now negating queries is simpler and easier to read. (4df8732 )
Before Now
qb . not ( ) . getByFileName ( 'test.txt' )
. not ( ) . getByFileType ( '...' )
qb . negate ( ( ) => {
qb . fileName ( 'test.txt' )
qb . fileType ( '...' )
// ...
} )
Field
Method
memberCount
memberCount()
organizerCount
organizerCount()
orgUnitId
orgDriveId()
sharedWithMe
shared()
shortcutDetails.targetId
shortcutTargetId()
viewedByMeTime
viewedAt()
Parenteses are now added only when strictly necessary. (985b872 )
Before Now
qb . getByFileName ( 'value' ) . build ( )
//=> (name = 'value')
qb . getByFileName ( [ 'value-1' , 'value-2' ] ) . build ( )
//=> (name = 'value-1' or name = 'value-2')
qb . fileName ( 'value' ) . build ( )
//=> name = 'value'
qb . fileName ( [ 'value-1' , 'value-2' ] ) . build ( )
//=> (name = 'value-1' or name = 'value-2')
Other Changes
ci: update checkout and setup-node to v4 (a44352a )
ci: update release-please action to v4 (c6897c8 )
deps-dev: update @biomejs/biome to 1.8.2 (731e588 )
deps-dev: update @commitlint/cli to 19.3.0 (4d82916 )
deps-dev: update @commitlint/config-conventional to 19.2.2 (4d82916 )
deps-dev: update husky to 9.0.11 (4d82916 , 2b0d603 )
deps-dev: update lint-staged to 15.2.7 (c18fefe )
deps-dev: update tsup to 8.1.0 (e720a58 )
deps-dev: downgrade typescript to 5.2.2 (supported by @biomejs/biome). (b878a0c , fd8d028 )
deps-dev: remove fix-tsup-cjs and terser. (4b85395 )
v2.0.2
Compare
Sorry, something went wrong.
No results found
2.0.2 (2023-12-31)
Bug Fixes
v2.0.1
Compare
Sorry, something went wrong.
No results found
2.0.1 (2023-12-30)
Bug Fixes
v2.0.0
Compare
Sorry, something went wrong.
No results found
2.0.0 (2023-12-30)
⚠ BREAKING CHANGES
replace existing methods with improved alternatives
remove some methods
Features
add FileType and VisibilityLevel enums (2b0faf6 )
add support for properties and appProperties (265f4a3 )
add support for starred and hidden (56fd889 )
add support for visibilityLevel (e44076f )
Bug Fixes
enum: update value in File enum for visibility (495f057 )
operator of getByContent (18222a5 )
Code Refactoring
remove some methods (dfeca01 )
replace existing methods with improved alternatives (d8af3f7 )
v1.1.0
Compare
Sorry, something went wrong.
No results found
1.1.0 (2023-11-29)
⚠ BREAKING CHANGES
rewrote inParents() as inCollection()
This change sets the minimum required Node.js version to 14.0.0. Users with Node.js versions below this minimum will need to upgrade their Node.js installation to use this package.
Features
add isTrashed() method for 'trashed' term (1a26c8b )
rewrote inParents() as inCollection() (535ccf4 )
support multiple folder ids in inParents() (045b4ca )
Bug Fixes
not() negates all queries, not just next (365ddee )
not() not working with inParents() (27d5c5d )
build: cjs exports for tsup output (f702c3c )
Miscellaneous Chores
bump minimum Node.js version to 14.0.0 (871afce )
release 1.1.0 (629e91b )
v1.0.1
Compare
Sorry, something went wrong.
No results found
1.0.1 (2023-02-18)
Refactors
remove repeated code and added return types explicitly (476ddc0 )
v1.0.0
Compare
Sorry, something went wrong.
No results found
1.0.0 (2023-02-16)
Features