New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

query-builder-for-driveapi

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

query-builder-for-driveapi - npm Package Versions

3.0.0

Diff

Changelog

Source

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)
<table> <thead> <tr><th>Before</th><th>Now</th></tr> </thead> <tbody> <tr> <td>
qb.not().getByFileName('test.txt')
  .not().getByFileType('...')
</td> <td>
qb.negate(() => {
  qb.fileName('test.txt')
  qb.fileType('...')
  // ...
})
</td> </tr> </tbody> </table>

| Field | Method | | -------------------------- | -------------------- | | memberCount | memberCount() | | organizerCount | organizerCount() | | orgUnitId | orgDriveId() | | sharedWithMe | shared() | | shortcutDetails.targetId | shortcutTargetId() | | viewedByMeTime | viewedAt() |

  • Parenteses are now added only when strictly necessary. (985b872)
<table> <thead> <tr><th>Before</th><th>Now</th></tr> </thead> <tbody> <tr> <td>
qb.getByFileName('value').build()
//=> (name = 'value')

qb.getByFileName(['value-1', 'value-2']).build()
//=> (name = 'value-1' or name = 'value-2')
</td> <td>
qb.fileName('value').build()
//=> name = 'value'

qb.fileName(['value-1', 'value-2']).build()
//=> (name = 'value-1' or name = 'value-2')
</td> </tr> </tbody> </table>

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)
br14n_sol
published 2.0.2 •

Changelog

Source

2.0.2 (2023-12-31)

Bug Fixes

br14n_sol
published 2.0.1 •

Changelog

Source

2.0.1 (2023-12-30)

Bug Fixes

br14n_sol
published 2.0.0 •

Changelog

Source

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)
br14n_sol
published 1.1.0 •

Changelog

Source

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)
br14n_sol
published 1.0.1 •

Changelog

Source

1.0.1 (2023-02-18)

Refactors

  • remove repeated code and added return types explicitly (476ddc0)
br14n_sol
published 1.0.0 •

Changelog

Source

1.0.0 (2023-02-16)

Features

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc