Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

build!: update to latest gts and TypeScript #851

Merged
merged 19 commits into from
Apr 14, 2020

Conversation

AVaksman
Copy link
Contributor

BREAKING CHANGE: typescript 3.7.x introduced breaking changes in the generated code.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 27, 2020
@AVaksman AVaksman force-pushed the update_gts-typescript branch 2 times, most recently from 6836c05 to c2e0eec Compare March 31, 2020 05:12
@AVaksman AVaksman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 31, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 31, 2020
@AVaksman AVaksman requested a review from bcoe March 31, 2020 19:11
@AVaksman AVaksman marked this pull request as ready for review March 31, 2020 19:11
.eslintignore Outdated
@@ -3,3 +3,6 @@ src/**/doc/*
build/
docs/
protos/
test/fixtures/fib.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of calling these out individually, add test/fixtures and ignore the whole dir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

test/fixtures
system-test/fixtures

Thanks

package.json Outdated
@@ -75,7 +75,7 @@
"cpy-cli": "^3.1.0",
"cross-env": "^7.0.0",
"execa": "^4.0.0",
"gts": "^1.0.0",
"gts": "^2.0.0-alpha.8",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ^2.0.0 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here and in system-test
Thanks

@@ -14,17 +14,19 @@

'use strict';

// eslint-disable-next-line node/no-unpublished-require
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a bug in samples/package.json. Can you make sure the files property is set in that file? We shouldn't need this exclusion rule.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

"files": [
    "*.js"
  ]

Thanks

@@ -40,9 +40,11 @@ export function evaluate(
frame: v8.FrameMirror
): {error: string | null; mirror?: v8.ValueMirror} {
// First validate the expression to make sure it doesn't mutate state
// eslint-disable-next-line @typescript-eslint/no-var-requires
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this, could you install @types/acorn and use that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used import * as acorn from 'acorn';
Thanks

@@ -14,8 +14,8 @@
"@google-cloud/debug-agent": "./debug.tgz"
},
"devDependencies": {
"gts": "^1.1.0",
"typescript": "~3.7.0",
"gts": "^2.0.0-alpha.8",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^2.0.0 pls

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed
Thanks

var i = 1;
var foo = function foo(j) {
return i + j + "hi";
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you get test failures, first place I'd look is rolling back changes to fixtures (otherwise this is fine)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I was looking out for the same thing. Looks like so far everything is green.

@JustinBeckwith JustinBeckwith merged commit 3130ad3 into googleapis:master Apr 14, 2020
@release-please release-please bot mentioned this pull request Apr 14, 2020
yoshi-automation added a commit that referenced this pull request Apr 15, 2020
Update to the latest TypeScript compiler and GTS.

Source-Author: Alex <7764119+AVaksman@users.noreply.github.com>
Source-Date: Tue Apr 14 13:46:44 2020 -0400
Source-Repo: googleapis/cloud-debug-nodejs
Source-Sha: 3130ad3
Source-Link: 3130ad3
yoshi-automation added a commit that referenced this pull request Apr 16, 2020
Update to the latest TypeScript compiler and GTS.

Source-Author: Alex <7764119+AVaksman@users.noreply.github.com>
Source-Date: Tue Apr 14 13:46:44 2020 -0400
Source-Repo: googleapis/cloud-debug-nodejs
Source-Sha: 3130ad3
Source-Link: 3130ad3
gcf-merge-on-green bot pushed a commit that referenced this pull request Jun 4, 2020
🤖 I have created a release \*beep\* \*boop\* 
---
## [5.0.0](https://www.github.com/googleapis/cloud-debug-nodejs/compare/v4.2.2...v5.0.0) (2020-05-20)


### ⚠ BREAKING CHANGES

* drop support for node.js 8.x (#851)
* require node 10 in engines field (#852)

### Features

* require node 10 in engines field ([#852](https://www.github.com/googleapis/cloud-debug-nodejs/issues/852)) ([01dc0e2](https://www.github.com/googleapis/cloud-debug-nodejs/commit/01dc0e263a57914e7f7320feac950dfedeeb7099))


### Bug Fixes

* **deps:** update dependency @google-cloud/common to v3 ([#853](https://www.github.com/googleapis/cloud-debug-nodejs/issues/853)) ([79bbc9c](https://www.github.com/googleapis/cloud-debug-nodejs/commit/79bbc9c9ad9c763166e6a96ba254c8521d485f12))
* **deps:** update dependency gcp-metadata to v4 ([#844](https://www.github.com/googleapis/cloud-debug-nodejs/issues/844)) ([8b4040e](https://www.github.com/googleapis/cloud-debug-nodejs/commit/8b4040e933676535fb75c135be931c70fc8bad37))
* apache license URL ([#468](https://www.github.com/googleapis/cloud-debug-nodejs/issues/468)) ([#863](https://www.github.com/googleapis/cloud-debug-nodejs/issues/863)) ([87553b2](https://www.github.com/googleapis/cloud-debug-nodejs/commit/87553b267df9e0008584645a80c41ef820c11689))
* reduce set of dependencies ([#876](https://www.github.com/googleapis/cloud-debug-nodejs/issues/876)) ([6c2722e](https://www.github.com/googleapis/cloud-debug-nodejs/commit/6c2722e59bb7113cf7a4bf065434b2be3aff50ca))


### Build System

* drop support for node.js 8.x ([#851](https://www.github.com/googleapis/cloud-debug-nodejs/issues/851)) ([3130ad3](https://www.github.com/googleapis/cloud-debug-nodejs/commit/3130ad320dc69b01d43d8e39d31ce158a13311f1))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
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.

None yet

4 participants