Releases
v3.0.0
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 )
You can’t perform that action at this time.