Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/nodejs-bigquery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.7.1
Choose a base ref
...
head repository: googleapis/nodejs-bigquery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.8.0
Choose a head ref
  • 9 commits
  • 11 files changed
  • 8 contributors

Commits on Jun 5, 2024

  1. feat: update types from Discovery (#1374)

    yoshi-code-bot authored Jun 5, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    williamdes William Desportes
    Copy the full SHA
    e416b6e View commit details
  2. ci: automate discovery types (#1372)

    alvarowolfx authored Jun 5, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    williamdes William Desportes
    Copy the full SHA
    8155b90 View commit details

Commits on Jun 6, 2024

  1. ci: regenerate discovery types on post-processing (#1371)

    alvarowolfx authored Jun 6, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    williamdes William Desportes
    Copy the full SHA
    ca8a495 View commit details
  2. chore(deps): update googleapis/code-suggester action to v4 (#1377)

    renovate-bot authored Jun 6, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    38d7efc View commit details
  3. chore: [node] add auto-approve templates, and install dependencies wi…

    …th engines-strict (#1369)
    
    * chore: [node] add auto-approve templates, and install dependencies with engines-strict
    
    chore: add auto-approve templates, and install dependencies with engines-strict
    
    Source-Link: googleapis/synthtool@4a02d97
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:68e1cece0d6d3336c4f1cb9d2857b020af5574dff6da6349293d1c6d4eea82d8
    
    * Update package.json
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: sofisl <[email protected]>
    Co-authored-by: Alvaro Viebrantz <[email protected]>
    4 people authored Jun 6, 2024
    Copy the full SHA
    79c78a7 View commit details

Commits on Jun 7, 2024

  1. chore: add discovery revision to types.d.ts (#1378)

    alvarowolfx authored Jun 7, 2024
    Copy the full SHA
    12d5b83 View commit details

Commits on Jun 13, 2024

  1. chore(deps): update actions/checkout action (#1382)

    * chore(deps): update actions/checkout action
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    renovate-bot and gcf-owl-bot[bot] authored Jun 13, 2024
    Copy the full SHA
    dc12197 View commit details

Commits on Jun 19, 2024

  1. ci: Enable constraintsFiltering for Node.js Libraries (#1381)

    chore: Enable `constraintsFiltering` for Node.js Libraries
    
    Source-Link: googleapis/synthtool@dae1282
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:d920257482ca1cd72978f29f7d28765a9f8c758c21ee0708234db5cf4c5016c2
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: danieljbruce <[email protected]>
    3 people authored Jun 19, 2024
    Copy the full SHA
    20bea6e View commit details

Commits on Jun 24, 2024

  1. chore(main): release 7.8.0 (#1375)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Jun 24, 2024
    Copy the full SHA
    1df7fba View commit details
Showing with 370 additions and 28 deletions.
  1. +3 −3 .github/.OwlBot.lock.yaml
  2. +2 −1 .github/auto-approve.yml
  3. +2 −2 .github/workflows/ci.yaml
  4. +36 −0 .github/workflows/discovery.yaml
  5. +7 −0 CHANGELOG.md
  6. +5 −0 owlbot.py
  7. +2 −2 package.json
  8. +1 −0 renovate.json
  9. +1 −1 samples/package.json
  10. +10 −2 scripts/gen-types.js
  11. +301 −17 src/types.d.ts
6 changes: 3 additions & 3 deletions .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Google LLC
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -13,5 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
digest: sha256:e92044720ab3cb6984a70b0c6001081204375959ba3599ef6c42dd99a7783a67
# created: 2023-11-10T00:24:05.581078808Z
digest: sha256:d920257482ca1cd72978f29f7d28765a9f8c758c21ee0708234db5cf4c5016c2
# created: 2024-06-12T16:18:41.688792375Z
3 changes: 2 additions & 1 deletion .github/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
processes:
- "NodeDependency"
- "OwlBotTemplateChanges"
- "OwlBotTemplateChangesNode"
- "OwlBotPRsNode"
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
- run: npm install --production --engine-strict --ignore-scripts --no-package-lock
# Clean up the production install, before installing dev/production:
- run: rm -rf node_modules
- run: npm install
- run: npm install --engine-strict
- run: npm test
env:
MOCHA_THROW_DEPRECATION: false
@@ -33,7 +33,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm install --engine-strict
- run: npm test
env:
MOCHA_THROW_DEPRECATION: false
36 changes: 36 additions & 0 deletions .github/workflows/discovery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
schedule:
- cron: '0 12 * * TUE'
workflow_dispatch:
name: Update Discovery Generated Types
jobs:
sync:
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 16
# Install all deps, including dev dependencies.
- run: npm install
# Generate types
- run: npm run types
# Install samples deps
- run: cd samples/ && npm install && cd ../
# Fix formatting
- run: npm run fix
# Submit pull request
- uses: googleapis/code-suggester@v4
with:
command: pr
upstream_owner: googleapis
upstream_repo: nodejs-bigquery
description: 'Automated pull-request to keep BigQuery Discovery types up-to-date.'
title: 'chore: update types from Discovery'
message: 'chore: update types from Discovery'
branch: update-discovery-patch
git_dir: '.'
fork: true
force: true
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,13 @@

[1]: https://www.npmjs.com/package/@google-cloud/bigquery?activeTab=versions

## [7.8.0](https://github.com/googleapis/nodejs-bigquery/compare/v7.7.1...v7.8.0) (2024-06-19)


### Features

* Update types from Discovery ([#1374](https://github.com/googleapis/nodejs-bigquery/issues/1374)) ([e416b6e](https://github.com/googleapis/nodejs-bigquery/commit/e416b6e888a435cd487e90932d2597bf4e4ddb72))

## [7.7.1](https://github.com/googleapis/nodejs-bigquery/compare/v7.7.0...v7.7.1) (2024-05-31)


5 changes: 5 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
@@ -15,5 +15,10 @@
"""This script is used to synthesize generated parts of this library."""

import synthtool.languages.node as node
from synthtool import shell

node.owlbot_main(templates_excludes=['.github/bug-report.md'])

# Regenerate Discovery types.
shell.run(('npm','run','types'))
node.fix()
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/bigquery",
"description": "Google BigQuery Client Library for Node.js",
"version": "7.7.1",
"version": "7.8.0",
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
@@ -78,7 +78,7 @@
"jsdoc": "^4.0.0",
"jsdoc-fresh": "^3.0.0",
"jsdoc-region-tag": "^3.0.0",
"linkinator": "^5.0.0",
"linkinator": "^3.0.0",
"mocha": "^9.2.2",
"pack-n-play": "^2.0.0",
"prettier": "^3.0.0",
1 change: 1 addition & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
"docker:disable",
":disableDependencyDashboard"
],
"constraintsFiltering": "strict",
"pinVersions": false,
"rebaseStalePrs": true,
"schedule": [
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
"fix": "gts fix"
},
"dependencies": {
"@google-cloud/bigquery": "^7.7.1",
"@google-cloud/bigquery": "^7.8.0",
"@google-cloud/storage": "^7.0.0",
"google-auth-library": "^9.6.0",
"readline-promise": "^1.0.4",
12 changes: 10 additions & 2 deletions scripts/gen-types.js
Original file line number Diff line number Diff line change
@@ -34,6 +34,8 @@ const LICENSE = `// Copyright 2024 Google LLC
// See the License for the specific language governing permissions and
// limitations under the License.`;

let discoveryRevision;

function overridedRender() {
const source = this.template({
title: this.title ? this.converter.toJSDoc(this.title) : '',
@@ -42,20 +44,26 @@ function overridedRender() {
resources: this.resources.map(resource => resource.render()),
});

let header = LICENSE + '\n';
if (discoveryRevision) {
header =
header + `\n/**\n * Discovery Revision: ${discoveryRevision} \n */\n`;
}
const patched = source.replaceAll(
'formatOptions.useInt64Timestamp',
"'formatOptions.useInt64Timestamp'"
);
const sourceWithLicense = LICENSE + '\n' + patched;
const fullSource = header + patched;

return prettier.format(sourceWithLicense, {
return prettier.format(fullSource, {
parser: 'typescript',
singleQuote: true,
});
}

async function genTypes() {
const json = await fetch('bigquery', 'v2');
discoveryRevision = json['revision'];
const generator = new TypeGenerator(json);
generator.render = overridedRender.bind(generator);
const types = await generator.render();
Loading