Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
b7d88cb
chore: release 2.0.3 (#234)
yoshi-automation Sep 12, 2019
058225e
fix: IP address takes 15 seconds to timeout, vs., metadata returning …
Sep 13, 2019
da8aefb
fix: use 3s timeout rather than 15 default (#237)
Sep 13, 2019
d399532
chore: release 2.0.4 (#236)
yoshi-automation Sep 13, 2019
53cc5f3
feat!: isAvailable now tries both DNS and IP, choosing whichever resp…
Sep 17, 2019
10d704c
chore: release 3.0.0 (#240)
yoshi-automation Sep 17, 2019
b132b63
chore: add protos/ to .eslintignore (#243)
alexander-fenster Sep 27, 2019
2c9f625
chore: add metadata file (#249)
JustinBeckwith Oct 3, 2019
c0432dd
feat: don't throw on ENETUNREACH (#250)
Oct 7, 2019
d69656f
chore: release 3.1.0 (#251)
release-please[bot] Oct 7, 2019
d9ff98f
docs: updates to CONTRIBUTING.md
yoshi-automation Oct 8, 2019
f5c8a27
chore: update CONTRIBUTING.md and make releaseType node (#253)
Oct 9, 2019
0f66696
feat: add DEBUG_AUTH for digging into authentication issues (#254)
Oct 10, 2019
a6db3e3
chore: release 3.2.0 (#255)
release-please[bot] Oct 10, 2019
16de8a9
fix(deps): update gaxios (#257)
loganhasson Oct 18, 2019
4bb3eb5
chore(deps): update dependency c8 to v6 (#259)
renovate-bot Oct 24, 2019
cad9b8c
chore: update to latest version of googleapis (#260)
Oct 24, 2019
7203f90
test: collect coverage in src folder
yoshi-automation Oct 31, 2019
87cd3c3
chore(deps): update dependency googleapis to v45 (#262)
renovate-bot Nov 8, 2019
2c80a15
chore: release 3.2.1 (#258)
release-please[bot] Nov 8, 2019
3069049
fix(docs): add jsdoc-region-tag plugin (#264)
Nov 13, 2019
9a26087
chore: release 3.2.2 (#265)
release-please[bot] Nov 13, 2019
c58a544
fix(deps): pin TypeScript below 3.7.0
Dec 5, 2019
2894975
chore(deps): update dependency googleapis to v46 (#271)
renovate-bot Dec 12, 2019
6aef705
chore: release 3.2.3 (#272)
release-please[bot] Dec 12, 2019
51ef6e4
feat: add environment variable for configuring environment detection …
Dec 16, 2019
3b93082
fix: fastFailMetadataRequest should not reject, if response already h…
Dec 16, 2019
6f68346
feat: cache response from isAvailable() method (#274)
Dec 16, 2019
ba7c7ea
chore: release 3.3.0 (#276)
release-please[bot] Dec 16, 2019
80b602f
docs: update jsdoc license/samples-README (#277)
Dec 23, 2019
6a1b38e
chore(deps): update dependency c8 to v7 (#279)
renovate-bot Dec 24, 2019
8a0ac5a
chore(deps): update dependency eslint-plugin-node to v11 (#280)
renovate-bot Dec 26, 2019
bcdcb45
refactor: use explicit mocha imports
JustinBeckwith Dec 30, 2019
456d6d1
chore: update .nycrc
yoshi-automation Jan 4, 2020
55364ed
chore(deps): update dependency mocha to v7 (#283)
renovate-bot Jan 6, 2020
e4f279c
chore(deps): update dependency gcx to v1 (#284)
renovate-bot Jan 14, 2020
36b0f5d
chore(deps): update dependency googleapis to v47 (#286)
renovate-bot Jan 17, 2020
e008114
chore: clear synth.metadata
JustinBeckwith Jan 24, 2020
043e6af
chore: regenerate synth.metadata (#290)
yoshi-automation Jan 28, 2020
a384b7d
chore(deps): update dependency @types/mocha to v7
renovate-bot Jan 30, 2020
cbfb588
fix(isAvailable): handle EHOSTDOWN and EHOSTUNREACH error codes (#291)
wascloud Jan 30, 2020
37555f5
chore: release 3.3.1 (#293)
release-please[bot] Jan 30, 2020
2f70a18
chore: skip img.shields.io in docs test
JustinBeckwith Feb 1, 2020
d0228c3
test: modernize mocha config (#294)
JustinBeckwith Feb 1, 2020
2080b9d
chore(deps): update dependency linkinator to v2
renovate-bot Feb 10, 2020
9eabe37
build: add GitHub actions config for unit tests (#297)
Feb 13, 2020
662ae17
chore(deps): update dependency nock to v12
renovate-bot Feb 20, 2020
8cdd7e0
feat: significantly increase timeout if GCF environment detected (#300)
Feb 24, 2020
c7dbe7b
chore: release 3.4.0 (#303)
release-please[bot] Feb 24, 2020
3afd1c5
chore(deps): update dependency uuid to v7
renovate-bot Feb 26, 2020
79b5e43
chore: update jsdoc.js (#306)
summer-ji-eng Feb 27, 2020
9d68c2e
chore: update .jsdoc.js by add protos and remove double quotes (#307)
summer-ji-eng Feb 27, 2020
d5e0b79
chore: correct .jsdoc.js protos and double quotes (#308)
summer-ji-eng Feb 28, 2020
1372fdc
feat: add ECONNREFUSED to list of known errors for isAvailable() (#309)
Mar 3, 2020
8f68d59
chore: release 3.5.0 (#310)
release-please[bot] Mar 3, 2020
08e0749
build: update linkinator config (#311)
gcf-merge-on-green[bot] Mar 6, 2020
7a0dee6
build(tests): fix coveralls and enable build cop (#312)
Mar 6, 2020
ab03803
chore(deps): update dependency googleapis to v48 (#314)
renovate-bot Mar 14, 2020
2ef14f2
feat!: drops Node 8 from engines field (#315)
Mar 19, 2020
5769f19
build!: switch to latest typescirpt/gts (#317)
Mar 19, 2020
bf00afb
chore: release 4.0.0 (#316)
release-please[bot] Mar 19, 2020
5aa5f48
fix(deps): update dependency gaxios to v3 (#326)
renovate-bot Mar 20, 2020
a371065
test: functions no longer default to allowing external connections (#…
Apr 2, 2020
b24e6ba
build: update templates
yoshi-automation Apr 2, 2020
c299144
build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits …
Apr 2, 2020
9a25345
chore: remove duplicate mocha config (#335)
JustinBeckwith Apr 5, 2020
8a3cf41
fix: apache license URL (#468) (#336)
yoshi-automation Apr 7, 2020
208d456
chore(deps): update dependency gts to v2 (#337)
renovate-bot Apr 11, 2020
dffc0a8
build: remove unused codecov config (#338)
JustinBeckwith Apr 12, 2020
7a779d9
chore: update lint ignore files (#339)
JustinBeckwith Apr 13, 2020
67d330a
chore: update formatting and lint (#341)
JustinBeckwith Apr 14, 2020
31d1eae
chore: release 4.0.1 (#328)
release-please[bot] Apr 15, 2020
6d0eeaa
chore(deps): update dependency googleapis to v49 (#342)
renovate-bot Apr 17, 2020
9c71106
build: use codecov's action, now that it's authless (#343)
yoshi-automation Apr 20, 2020
71daafe
chore: update npm scripts and synth.py (#344)
alexander-fenster Apr 24, 2020
b20c004
chore(deps): update dependency tmp to ^0.2.0 (#345)
renovate-bot Apr 27, 2020
04f2050
feat: Introduces the GCE_METADATA_IP to allow using a different IP ad…
bojeil-google May 1, 2020
c103d1d
chore(deps): update dependency uuid to v8 (#347)
renovate-bot May 1, 2020
fd72a4f
chore(deps): update dependency @types/tmp to v0.2.0 (#350)
renovate-bot May 1, 2020
538288c
fix: warn rather than throwing when we fail to connect to metadata se…
May 5, 2020
88e4f74
fix: do not check secondary host if GCE_METADATA_IP set (#352)
May 5, 2020
22769cd
chore: release 4.1.0 (#349)
release-please[bot] May 5, 2020
8980dba
chore(deps): update dependency googleapis to v50 (#353)
renovate-bot May 6, 2020
19b059b
build: do not fail builds on codecov errors (#528) (#354)
yoshi-automation May 8, 2020
f8bbe02
chore(deps): update dependency @types/uuid to v8 (#359)
renovate-bot May 20, 2020
ac3394c
chore(deps): update dependency googleapis to v51 (#355)
renovate-bot May 27, 2020
950177f
chore(deps): update dependency googleapis to v52 (#360)
renovate-bot Jun 4, 2020
da40686
build: migrate to secret manager (#362)
yoshi-automation Jun 10, 2020
9f1bbf1
chore(deps): update dependency mocha to v8 (#363)
renovate-bot Jun 11, 2020
ccadf58
chore(nodejs_templates): add script logging to node_library populate-…
yoshi-automation Jun 11, 2020
4a9644f
chore: update node issue template (#365)
yoshi-automation Jun 18, 2020
39857b2
build: add config .gitattributes (#368)
yoshi-automation Jun 28, 2020
40301b1
chore(deps): update dependency nock to v13 (#369)
renovate-bot Jun 29, 2020
cc61764
fix: typeo in nodejs .gitattribute (#371)
yoshi-automation Jul 9, 2020
158c617
chore: release 4.1.1 (#372)
release-please[bot] Jul 10, 2020
f17bd29
fix(deps): roll back dependency gcp-metadata to ^4.1.0 (#373)
renovate-bot Jul 10, 2020
0bc078f
chore: release 4.1.2 (#375)
release-please[bot] Jul 10, 2020
093713a
chore(deps): update dependency @types/mocha to v8 (#377)
renovate-bot Jul 12, 2020
0ac5476
docs: add ProjectID and nested properties examples (#366)
grayside Jul 13, 2020
b4d7964
fix(deps): update dependency json-bigint to ^0.4.0 (#378)
renovate-bot Jul 13, 2020
8ff98a7
chore: release 4.1.3 (#379)
release-please[bot] Jul 13, 2020
909c996
chore(deps): update dependency googleapis to v54 (#380)
renovate-bot Jul 14, 2020
ff797a7
fix(deps): update dependency json-bigint to v1 (#382)
renovate-bot Jul 15, 2020
275f194
chore: release 4.1.4 (#383)
release-please[bot] Jul 15, 2020
2fa1637
build: fix typo in publish (#387)
yoshi-automation Jul 16, 2020
ead70fc
chore: add config files for cloud-rad for node.js (#388)
yoshi-automation Jul 17, 2020
ed64768
chore(deps): update dependency googleapis to v55 (#389)
renovate-bot Jul 18, 2020
58f5b1f
chore: add dev dependencies for cloud-rad ref docs (#390)
fhinkel Jul 21, 2020
97b1ba8
build: rename _toc to toc (#391)
yoshi-automation Jul 23, 2020
0fe0186
build: move gitattributes files to node templates (#392)
yoshi-automation Jul 23, 2020
003e034
chore(deps): update dependency googleapis to v56 (#393)
renovate-bot Jul 25, 2020
2434c8d
chore(deps): update dependency googleapis to v57 (#394)
renovate-bot Jul 28, 2020
5dbd12f
chore(node): fix kokoro build path for cloud-rad (#395)
yoshi-automation Jul 30, 2020
92c9fc7
chore(deps): update dependency googleapis to v58 (#396)
renovate-bot Jul 31, 2020
4d643e3
build: --credential-file-override is no longer required (#398)
yoshi-automation Aug 8, 2020
fb05e10
chore(deps): update dependency googleapis to v59 (#399)
renovate-bot Aug 12, 2020
d2709d9
chore: update cloud rad kokoro build job (#400)
yoshi-automation Aug 12, 2020
9dbdb5c
build: perform publish using Node 12 (#401)
yoshi-automation Aug 14, 2020
c340c11
chore: start tracking obsolete files (#402)
yoshi-automation Aug 19, 2020
dc0afb7
build: move system and samples test from Node 10 to Node 12 (#403)
yoshi-automation Aug 21, 2020
94a517d
build: track flaky tests for "nightly", add new secrets for tagging (…
yoshi-automation Aug 28, 2020
889dcbb
test: kitchen sink test had ancient deps (#408)
Sep 10, 2020
9d6942f
build(test): recursively find test files; fail on unsupported depende…
yoshi-automation Sep 12, 2020
04ee1b8
feat: add support for GCE_METADATA_HOST environment variable (#406)
sofisl Sep 15, 2020
05d1ada
chore: start tracking obsolete files (#411)
yoshi-automation Sep 15, 2020
b97037f
chore: release 4.2.0 (#410)
release-please[bot] Sep 15, 2020
b16b584
chore(deps): update dependency googleapis to v60 (#412)
renovate-bot Sep 24, 2020
6a77c86
chore: update bucket for cloud-rad (#413)
yoshi-automation Oct 1, 2020
dc4c29f
build(node_library): migrate to Trampoline V2 (#414)
yoshi-automation Oct 5, 2020
f697df0
chore(deps): update dependency googleapis to v61 (#415)
renovate-bot Oct 6, 2020
b4991a1
chore(deps): update dependency gts to v3 (#416)
renovate-bot Oct 9, 2020
6850afb
build: only check --engine-strict for production deps (#418)
yoshi-automation Oct 16, 2020
a31f4a0
chore: clean up Node.js TOC for cloud-rad (#419)
yoshi-automation Oct 21, 2020
180cea4
fix(deps): update dependency gaxios to v4 (#420)
renovate-bot Oct 22, 2020
628f5c1
docs: updated code of conduct (includes update to actions) (#425)
yoshi-automation Oct 29, 2020
333fa42
chore: release 4.2.1 (#421)
release-please[bot] Oct 29, 2020
896188e
chore(deps): update dependency googleapis to v62 (#426)
renovate-bot Nov 2, 2020
b9d5609
build(node): add KOKORO_BUILD_ARTIFACTS_SUBDIR to env (#427)
yoshi-automation Nov 2, 2020
5ab9315
chore(deps): update dependency googleapis to v63 (#428)
renovate-bot Nov 3, 2020
e19f2de
chore(deps): update dependency googleapis to v64 (#429)
renovate-bot Nov 16, 2020
bb9d24b
chore(deps): update dependency googleapis to v65 (#430)
renovate-bot Nov 17, 2020
4bc2d36
chore(deps): update dependency googleapis to v66 (#431)
renovate-bot Dec 3, 2020
7dc13ab
docs: add instructions for authenticating for system tests (#432)
yoshi-automation Dec 22, 2020
0e7e382
chore(deps): update dependency googleapis to v67 (#433)
renovate-bot Jan 9, 2021
c32df40
refactor(nodejs): move build cop to flakybot (#435)
yoshi-automation Jan 27, 2021
2f34329
docs: generate a standard README (#437)
JustinBeckwith Feb 26, 2021
880082c
chore(deps): update dependency googleapis to v68 (#439)
renovate-bot Mar 19, 2021
5eb8105
chore(deps): update dependency googleapis to v70 (#440)
renovate-bot Apr 2, 2021
6b8b7c8
chore: regenerate common templates (#443)
yoshi-automation Apr 20, 2021
ba38cf6
build: address memory issue with Node 10 (#448)
May 5, 2021
710fef1
chore(deps): update dependency googleapis to v73 (#447)
renovate-bot May 5, 2021
bd4e85e
build: add generated-files bot config (#446)
yoshi-automation May 5, 2021
fdf4c53
build: remove codecov action (#449)
yoshi-automation May 17, 2021
7db1f92
feat: add `gcf-owl-bot[bot]` to `ignoreAuthors` (#450)
yoshi-automation May 19, 2021
74ce0d4
chore: migrate to owl bot (#452)
SurferJeffAtGoogle May 21, 2021
eff3d98
chore(deps): update dependency @types/node to v14 (#453)
renovate-bot May 21, 2021
3c6884d
chore(deps): update dependency googleapis to v74 (#454)
renovate-bot May 25, 2021
be98bff
refactor: use functions module for tests (#456)
JustinBeckwith May 25, 2021
6227ce9
chore: release 4.3.0 (#462)
release-please[bot] Jun 10, 2021
69e0aee
chore(nodejs): remove api-extractor dependencies (#465)
fhinkel Jun 10, 2021
16c7c6a
chore(deps): update node.js to v16 (#468)
renovate-bot Jun 28, 2021
8efb987
chore(deps): update dependency @types/tmp to v0.2.1 (#473)
renovate-bot Jul 3, 2021
abd347a
chore: disable renovate dependency dashboard (#1194) (#480)
gcf-owl-bot[bot] Aug 25, 2021
aaabae4
fix(build): switch primary branch to main (#481)
Sep 2, 2021
7f2ac1d
chore: release 4.3.1 (#482)
release-please[bot] Sep 2, 2021
539d9c3
chore(nodejs): update client ref docs link in metadata (#476)
fhinkel Sep 7, 2021
d29eab7
chore: relocate owl bot post processor (#488)
SurferJeffAtGoogle Sep 21, 2021
4d73dd5
chore(cloud-rad): delete api-extractor config (#491)
fhinkel Oct 21, 2021
bef79fc
chore(deps): update node.js to v17 (#492)
renovate-bot Oct 22, 2021
f57e6cc
chore(deps): update dependency @types/tmp to v0.2.2 (#493)
renovate-bot Oct 22, 2021
17014ce
chore(deps): update dependency @types/node to v16 (#495)
renovate-bot Oct 26, 2021
148e405
build: add generated samples to .eslintignore (#496)
gcf-owl-bot[bot] Dec 9, 2021
70d22ed
chore(deps): update dependency @types/tmp to v0.2.3 (#497)
renovate-bot Dec 17, 2021
805b2e5
docs(node): support "stable"/"preview" release level (#1312) (#499)
gcf-owl-bot[bot] Dec 29, 2021
cd619c2
docs(badges): tweak badge to use new preview/stable language (#1314) …
gcf-owl-bot[bot] Dec 30, 2021
a7fb980
docs(nodejs): version support policy edits (#1346) (#507)
gcf-owl-bot[bot] Feb 3, 2022
c9d21ae
build!: drop node 10, update typescript to 4.6.3 (#519)
ddelgrosso1 Apr 22, 2022
c26a9fd
chore(deps): update node.js to v18 (#517)
renovate-bot Apr 22, 2022
c08d750
chore(main): release 5.0.0 (#520)
release-please[bot] Apr 22, 2022
6e11171
chore(deps): update dependency @types/mocha to v9 (#521)
renovate-bot May 3, 2022
38824e2
chore(deps): update dependency @google-cloud/functions to v2 (#524)
renovate-bot Jun 7, 2022
0b76c29
chore(deps): update dependency linkinator to v4 (#526)
renovate-bot Jul 8, 2022
43dbf86
chore(deps): update dependency uuid to v9 (#531)
renovate-bot Sep 9, 2022
990c521
chore(main): release 5.0.1 (#530)
release-please[bot] Sep 26, 2022
213adb1
chore(deps): update dependency @types/node to v18 (#537)
renovate-bot Nov 10, 2022
9ebb4fb
chore(deps): update dependency @types/uuid to v9 (#539)
renovate-bot Dec 6, 2022
da98aaf
feat: Extend GCP Residency Detection Support (#528)
danielbankhead Dec 7, 2022
11494b8
chore(main): release 5.1.0 (#541)
release-please[bot] Dec 7, 2022
1399fb4
chore(deps): update dependency sinon to v15 (#547)
renovate-bot Dec 14, 2022
6fde6e5
feat: export `gcp-residency` tools (#552)
danielbankhead Jan 3, 2023
caf15ed
chore(main): release 5.2.0 (#553)
release-please[bot] Jan 3, 2023
567ab5e
test: Use GCP Residency Utility for Deterministic Testing (#554)
danielbankhead Mar 16, 2023
c8f4f0b
chore(deps): update node.js to v20 (#557)
renovate-bot May 2, 2023
add7286
feat: Metadata Server Detection Configuration (#562)
danielbankhead Jun 28, 2023
47082ab
chore(deps): update dependency c8 to v8 (#561)
renovate-bot Jun 28, 2023
4533081
chore(main): release 5.3.0 (#565)
release-please[bot] Jun 28, 2023
b1242ac
chore!: upgrade to Node 14, and update gaxios, ts, and gts (#571)
sofisl Jul 17, 2023
3fbb837
chore(main): release 6.0.0 (#572)
release-please[bot] Jul 19, 2023
44ad148
docs: fix node release schedule link (#576)
gcf-owl-bot[bot] Aug 7, 2023
77c06d7
chore: remove `skipLibCheck` (#574)
danielbankhead Aug 9, 2023
221b28a
chore(deps): update dependency gts to v5 (#575)
renovate-bot Aug 11, 2023
1cddf28
chore(deps): update dependency @types/tmp to v0.2.4 (#582)
renovate-bot Sep 22, 2023
54e9d75
chore(nodejs): Add `system-test/fixtures` to `.eslintignore` (#586)
gcf-owl-bot[bot] Oct 11, 2023
31d7c5f
chore(deps): update dependency sinon to v16 (#583)
renovate-bot Oct 13, 2023
9ee981b
chore(deps): update dependency @types/tmp to v0.2.5 (#588)
renovate-bot Oct 19, 2023
6bc2bf2
chore(deps): update dependency @types/tmp to v0.2.6 (#594)
renovate-bot Nov 8, 2023
85309b2
chore(deps): update dependency @types/node to v20 (#592)
renovate-bot Nov 9, 2023
dffc915
chore(deps): update dependency sinon to v17 (#590)
renovate-bot Nov 9, 2023
17fb12c
chore: remove `@babel/plugin-proposal-private-methods` (#573)
danielbankhead Nov 9, 2023
d6abe2f
fix: Repo Metadata (#595)
danielbankhead Nov 10, 2023
cfca19a
feat: Add `universe` metadata handler (#596)
danielbankhead Nov 10, 2023
782ac9c
feat: Bulk Metadata Requests (#598)
danielbankhead Nov 10, 2023
80a93af
chore(main): release 6.1.0 (#601)
release-please[bot] Nov 13, 2023
19b8e8d
refactor: Streamline Error Flow for `metadataAccessor` (#605)
danielbankhead Dec 5, 2023
f29b956
chore(deps): update dependency c8 to v9 (#607)
renovate-bot Jan 16, 2024
6388b15
chore: Fix License (#609)
danielbankhead Feb 23, 2024
6094d36
docs: Rename `universe_domain` to `universe-domain` (#610)
danielbankhead May 8, 2024
d1114a0
chore(deps): update dependency sinon to v18 (#612)
renovate-bot May 27, 2024
2e2c494
chore: [node] add auto-approve templates, and install dependencies wi…
gcf-owl-bot[bot] Jun 6, 2024
19b6cf5
chore: update links in github issue templates (#624)
gcf-owl-bot[bot] Oct 21, 2024
824fb17
chore!: upgrade to node 18 (#627)
gcf-owl-bot[bot] Dec 11, 2024
b100ef4
fix: add extra logging for incorrect headers (#637)
sofisl Jan 15, 2025
44419d6
chore(deps): update node.js to v22 (#631)
renovate-bot Jan 22, 2025
8ca0217
fix(deps): update dependency google-logging-utils to v1 (#638)
renovate-bot Jan 22, 2025
cb27c2b
feat: release 6.2.0 (#641)
sofisl Jan 29, 2025
dd0012a
refactor: `fastFailMetadataRequest` to use `Promise.any` (#604)
Dhoni77 Feb 7, 2025
30c2125
chore: Fix and Update System Tests for Node 18 (#650)
d-goog Feb 7, 2025
edb9fd5
chore(deps): Bump `gaxios` (#649)
d-goog Feb 11, 2025
6e999e9
fix: remove the space from the log system string (#653)
feywind Feb 27, 2025
3d819c0
chore(deps): update node.js to v22 (#652)
renovate-bot Feb 28, 2025
389c9b4
chore: bump deps (#654)
d-goog May 20, 2025
16babda
chore(deps): update dependency sinon to v20 (#659)
renovate-bot May 24, 2025
5e8186f
chore: bump gaxios@rc (#665)
d-goog May 27, 2025
65b535d
chore: update gaxios to 7.0.0 (#667)
sofisl Jun 10, 2025
32ab901
chore(main): release 7.0.0 (#640)
release-please[bot] Jun 10, 2025
a8e6e19
chore: update owlbot.py to fix issue mechanism (#670)
sofisl Jun 12, 2025
001a371
chore: update package.json to correct value https://nodejs.org/api/pa…
sofisl Jun 20, 2025
36e28f8
build: make tests more robust with Node 22 ESM changes (#676)
sofisl Jun 25, 2025
2e8b5c9
chore(main): release 7.0.1 (#675)
release-please[bot] Jun 25, 2025
158c54a
chore(deps): update dependency jsdoc-fresh to v4 (#666)
renovate-bot Jun 30, 2025
b43f920
chore(deps): update dependency @google-cloud/functions to v4 (#658)
renovate-bot Jul 1, 2025
4b9a76d
chore(deps): update dependency sinon to v21 (#673)
renovate-bot Jul 1, 2025
506c47c
Merge remote-tracking branch 'migration/main' into gcp-metadata-migra…
miguelvelezsa Sep 30, 2025
bd65260
build: add release-please config, fix owlbot-config
miguelvelezsa Sep 30, 2025
33f32f9
Merge branch 'main' into gcp-metadata-migration
miguelvelezsa Oct 1, 2025
8be60a1
fix: gcp-metadata tsconfig extends path
miguelvelezsa Oct 1, 2025
bf952c6
fix: gcp-metadata eslint file
miguelvelezsa Oct 1, 2025
9e4a226
Merge branch 'main' into gcp-metadata-migration
miguelvelezsa Oct 1, 2025
2428e4b
Merge branch 'main' into gcp-metadata-migration
miguelvelezsa Oct 2, 2025
63e08de
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Oct 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dev-packages/jsdoc-fresh": "5.0.1",
"dev-packages/pack-n-play": "4.2.0",
"dev-packages/jsdoc-region-tag": "4.0.0"
"packages/jsdoc-region-tag": "4.0.0",
"packages/gcp-metadata": "7.0.1"
}
17 changes: 17 additions & 0 deletions packages/gcp-metadata/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


begin-after-commit-hash: 397c0bfd367a2427104f988d5329bc117caafd95

10 changes: 10 additions & 0 deletions packages/gcp-metadata/.compodocrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
tsconfig: ./tsconfig.json
output: ./docs
theme: material
hideGenerator: true
disablePrivate: true
disableProtected: true
disableInternal: true
disableCoverage: true
disableGraph: true
8 changes: 8 additions & 0 deletions packages/gcp-metadata/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
samples/generated/
system-test/**/fixtures
15 changes: 15 additions & 0 deletions packages/gcp-metadata/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Config file for eslint used by gts.

const path = require('path');

// 1. Find the absolute path to the 'gts' package's directory
// This forces Node.js to look up in the directory tree (hoisted root)
const GTS_CONFIG_PATH = path.dirname(
require.resolve('gts/package.json', {paths: [__dirname]}),
);

module.exports = {
// Use the absolute path provided by Node's resolution
// This bypasses the relative path failure completely.
extends: [GTS_CONFIG_PATH],
};
4 changes: 4 additions & 0 deletions packages/gcp-metadata/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.ts text eol=lf
*.js text eol=lf
protos/* linguist-generated
**/api-extractor.json linguist-language=JSON-with-Comments
12 changes: 12 additions & 0 deletions packages/gcp-metadata/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
build
.vscode
package-lock.json
.nyc_output
.coverage
package-lock.json
gcp-metadata.tgz
docs/
__pycache__
.DS_Store
*.tgz
51 changes: 51 additions & 0 deletions packages/gcp-metadata/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

'use strict';

module.exports = {
opts: {
readme: './README.md',
package: './package.json',
template: './node_modules/jsdoc-fresh',
recurse: true,
verbose: true,
destination: './docs/'
},
plugins: [
'plugins/markdown',
'jsdoc-region-tag'
],
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'build/src',
],
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2019 Google, LLC.',
includeDate: false,
sourceFiles: false,
systemName: 'gcp-metadata',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
29 changes: 29 additions & 0 deletions packages/gcp-metadata/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000,
"recursive": true
}
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}
if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}
if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}
module.exports = config
24 changes: 24 additions & 0 deletions packages/gcp-metadata/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"report-dir": "./.coverage",
"reporter": ["text", "lcov"],
"exclude": [
"**/*-test",
"**/.coverage",
"**/apis",
"**/benchmark",
"**/conformance",
"**/docs",
"**/samples",
"**/scripts",
"**/protos",
"**/test",
"**/*.d.ts",
".jsdoc.js",
"**/.jsdoc.js",
"karma.conf.js",
"webpack-tests.config.js",
"webpack.config.js"
],
"exclude-after-remap": false,
"all": true
}
6 changes: 6 additions & 0 deletions packages/gcp-metadata/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/coverage
test/fixtures
build/
docs/
protos/
17 changes: 17 additions & 0 deletions packages/gcp-metadata/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

module.exports = {
...require('gts/.prettierrc.json')
}
77 changes: 77 additions & 0 deletions packages/gcp-metadata/.readme-partials.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
body: |-

#### Check to see if the metadata server is available
```js
const isAvailable = await gcpMetadata.isAvailable();
```

#### Access all metadata

```js
const data = await gcpMetadata.instance();
console.log(data); // ... All metadata properties
```

#### Access specific properties
```js
const data = await gcpMetadata.instance('hostname');
console.log(data); // ...Instance hostname
const projectId = await gcpMetadata.project('project-id');
console.log(projectId); // ...Project ID of the running instance
```

#### Access nested properties with the relative path
```js
const data = await gcpMetadata.instance('service-accounts/default/email');
console.log(data); // ...Email address of the Compute identity service account
```

#### Access specific properties with query parameters
```js
const data = await gcpMetadata.instance({
property: 'tags',
params: { alt: 'text' }
});
console.log(data) // ...Tags as newline-delimited list
```

#### Access with custom headers
```js
await gcpMetadata.instance({
headers: { 'no-trace': '1' }
}); // ...Request is untraced
```

### Take care with large number valued properties

In some cases number valued properties returned by the Metadata Service may be
too large to be representable as JavaScript numbers. In such cases we return
those values as `BigNumber` objects (from the [bignumber.js](https://github.com/MikeMcl/bignumber.js) library). Numbers
that fit within the JavaScript number range will be returned as normal number
values.

```js
const id = await gcpMetadata.instance('id');
console.log(id) // ... BigNumber { s: 1, e: 18, c: [ 45200, 31799277581759 ] }
console.log(id.toString()) // ... 4520031799277581759
```

### Environment variables

* `GCE_METADATA_HOST`: provide an alternate host or IP to perform lookup against (useful, for example, you're connecting through a custom proxy server).

For example:
```
export GCE_METADATA_HOST='169.254.169.254'
```

* `DETECT_GCP_RETRIES`: number representing number of retries that should be attempted on metadata lookup.

* `DEBUG_AUTH`: emit debugging logs

* `METADATA_SERVER_DETECTION`: configure desired metadata server availability check behavior.

* `assume-present`: don't try to ping the metadata server, but assume it's present
* `none`: don't try to ping the metadata server, but don't try to use it either
* `bios-only`: treat the result of a BIOS probe as canonical (don't fall back to pinging)
* `ping-only`: skip the BIOS probe, and go straight to pinging
13 changes: 13 additions & 0 deletions packages/gcp-metadata/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "gcp-metadata",
"name_pretty": "GCP Metadata",
"product_documentation": "https://cloud.google.com/compute/docs/storing-retrieving-metadata",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/gcp-metadata/latest",
"issue_tracker": "https://github.com/googleapis/google-cloud-node-core/issues",
"release_level": "stable",
"language": "nodejs",
"repo": "googleapis/google-cloud-node-core",
"distribution_name": "gcp-metadata",
"requires_billing": false,
"library_type": "CORE"
}
Loading