Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

refactor(typescript): convert index to es module#227

Merged
JustinBeckwith merged 4 commits intogoogleapis:masterfrom
JustinBeckwith:index-ts-is-hard
Oct 26, 2018
Merged

refactor(typescript): convert index to es module#227
JustinBeckwith merged 4 commits intogoogleapis:masterfrom
JustinBeckwith:index-ts-is-hard

Conversation

@JustinBeckwith
Copy link
Copy Markdown
Contributor

@JustinBeckwith JustinBeckwith commented Oct 25, 2018

BREAKING CHANGE: The import style of this library has been changed to be es module compatible.

Old Code

const BigQuery = require('@google-cloud/bigquery');
const bigquery = new BigQuery();

New Code

const {BigQuery} = require('@google-cloud/bigquery');
const bigquery = new BigQuery();

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 25, 2018
Comment thread test/index.ts
};

it('should expose static and instance constructors', () => {
it.skip('should expose static and instance constructors', () => {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread src/table.ts
import * as arrify from 'arrify';
import * as Big from 'big.js';
import {ServiceObject, util, SetMetadataResponse, ResponseCallback} from '@google-cloud/common';
import * as common from '@google-cloud/common';

This comment was marked as spam.

This comment was marked as spam.

@JustinBeckwith
Copy link
Copy Markdown
Contributor Author

Tip to reviewers @kinwa91 @stephenplusplus - you probably want to add ?w=1 in the url to filter out all the whitespace junk and noise:
https://github.com/googleapis/nodejs-bigquery/pull/227/files?w=1

@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 26, 2018
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 26, 2018
Comment thread package.json
@@ -57,7 +57,6 @@
"benchmark": "time node benchmark/bench.js benchmark/queries.json",
"docs": "jsdoc -c .jsdoc.js",
"lint": "eslint samples/",

This comment was marked as spam.

This comment was marked as spam.

@JustinBeckwith JustinBeckwith merged commit fcbc07b into googleapis:master Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants