Skip to content

Commit c240bd8

Browse files
authored
Merge pull request #3412 from googleapis/nodejs-memcache-migration
migrate code from googleapis/nodejs-memcache
2 parents 30206f4 + beb284f commit c240bd8

File tree

65 files changed

+48897
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+48897
-0
lines changed

.release-please-manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"packages/google-cloud-certificatemanager": "0.6.0",
1919
"packages/google-cloud-gkemulticloud": "0.1.2",
2020
"packages/google-cloud-language": "5.1.0",
21+
"packages/google-cloud-memcache": "2.1.2",
2122
"packages/google-cloud-oslogin": "4.0.2",
2223
"packages/google-cloud-phishingprotection": "3.0.4",
2324
"packages/google-cloud-policytroubleshooter": "2.0.4",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
deep-remove-regex:
16+
- /owl-bot-staging
17+
18+
deep-copy-regex:
19+
- source: /google/cloud/memcache/(.*)/.*-nodejs
20+
dest: /owl-bot-staging/google-cloud-memcache/$1
21+
22+
begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
7+
samples/generated/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.ts text eol=lf
2+
*.js text eol=lf
3+
protos/* linguist-generated
4+
**/api-extractor.json linguist-language=JSON-with-Comments
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**/*.log
2+
**/node_modules
3+
.coverage
4+
coverage
5+
.nyc_output
6+
docs/
7+
out/
8+
build/
9+
system-test/secrets.js
10+
system-test/*key.json
11+
*.lock
12+
.DS_Store
13+
package-lock.json
14+
__pycache__
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
19+
'use strict';
20+
21+
module.exports = {
22+
opts: {
23+
readme: './README.md',
24+
package: './package.json',
25+
template: './node_modules/jsdoc-fresh',
26+
recurse: true,
27+
verbose: true,
28+
destination: './docs/'
29+
},
30+
plugins: [
31+
'plugins/markdown',
32+
'jsdoc-region-tag'
33+
],
34+
source: {
35+
excludePattern: '(^|\\/|\\\\)[._]',
36+
include: [
37+
'build/src',
38+
'protos'
39+
],
40+
includePattern: '\\.js$'
41+
},
42+
templates: {
43+
copyright: 'Copyright 2022 Google LLC',
44+
includeDate: false,
45+
sourceFiles: false,
46+
systemName: '@google-cloud/memcache',
47+
theme: 'lumen',
48+
default: {
49+
outputSourceFiles: false
50+
}
51+
},
52+
markdown: {
53+
idInHeadings: true
54+
}
55+
};
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
const config = {
15+
"enable-source-maps": true,
16+
"throw-deprecation": true,
17+
"timeout": 10000,
18+
"recursive": true
19+
}
20+
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
21+
delete config['throw-deprecation'];
22+
}
23+
if (process.env.MOCHA_REPORTER) {
24+
config.reporter = process.env.MOCHA_REPORTER;
25+
}
26+
if (process.env.MOCHA_REPORTER_OUTPUT) {
27+
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
28+
}
29+
module.exports = config

packages/google-cloud-memcache/.nycrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"report-dir": "./.coverage",
3+
"reporter": ["text", "lcov"],
4+
"exclude": [
5+
"**/*-test",
6+
"**/.coverage",
7+
"**/apis",
8+
"**/benchmark",
9+
"**/conformance",
10+
"**/docs",
11+
"**/samples",
12+
"**/scripts",
13+
"**/protos",
14+
"**/test",
15+
"**/*.d.ts",
16+
".jsdoc.js",
17+
"**/.jsdoc.js",
18+
"karma.conf.js",
19+
"webpack-tests.config.js",
20+
"webpack.config.js"
21+
],
22+
"exclude-after-remap": false,
23+
"all": true
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
module.exports = {
16+
...require('gts/.prettierrc.json')
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"language": "nodejs",
3+
"requires_billing": true,
4+
"product_documentation": "https://cloud.google.com/memorystore/docs/memcached",
5+
"repo": "googleapis/google-cloud-node",
6+
"default_version": "v1",
7+
"name_pretty": "Memorystore for Memcached",
8+
"release_level": "stable",
9+
"distribution_name": "@google-cloud/memcache",
10+
"name": "memcache",
11+
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/memcache/latest",
12+
"api_id": "memcache.googleapis.com",
13+
"issue_tracker": "https://issuetracker.google.com/savedsearches/5169231",
14+
"api_shortname": "memcache",
15+
"library_type": "GAPIC_AUTO"
16+
}
+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# Changelog
2+
3+
## [2.1.2](https://github.com/googleapis/nodejs-memcache/compare/v2.1.1...v2.1.2) (2022-09-21)
4+
5+
6+
### Bug Fixes
7+
8+
* Allow passing gax instance to client constructor ([#216](https://github.com/googleapis/nodejs-memcache/issues/216)) ([6d5a65a](https://github.com/googleapis/nodejs-memcache/commit/6d5a65a5fd0881e38d72083aefc614bdd2360f19))
9+
* Preserve default values in x-goog-request-params header ([#218](https://github.com/googleapis/nodejs-memcache/issues/218)) ([8d8c968](https://github.com/googleapis/nodejs-memcache/commit/8d8c96866345800625f01edee0c42a675710fa22))
10+
11+
## [2.1.1](https://github.com/googleapis/nodejs-memcache/compare/v2.1.0...v2.1.1) (2022-08-27)
12+
13+
14+
### Bug Fixes
15+
16+
* better support for fallback mode ([#209](https://github.com/googleapis/nodejs-memcache/issues/209)) ([8398c52](https://github.com/googleapis/nodejs-memcache/commit/8398c52666aca0a251852edc3b3d341bdfa11902))
17+
* change import long to require ([#211](https://github.com/googleapis/nodejs-memcache/issues/211)) ([9139124](https://github.com/googleapis/nodejs-memcache/commit/91391240a20101ef11b1805973bd772fda8edabe))
18+
* do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-memcache/issues/1553)) ([#215](https://github.com/googleapis/nodejs-memcache/issues/215)) ([12ee008](https://github.com/googleapis/nodejs-memcache/commit/12ee00812abedba79271ea2dd97e042e1cab22bf))
19+
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-memcache/issues/1546)) ([#214](https://github.com/googleapis/nodejs-memcache/issues/214)) ([35b9a7b](https://github.com/googleapis/nodejs-memcache/commit/35b9a7bef37482d3f7209c16b6cd87fab0f72ea8))
20+
* use google-gax v3.3.0 ([12ee008](https://github.com/googleapis/nodejs-memcache/commit/12ee00812abedba79271ea2dd97e042e1cab22bf))
21+
22+
## [2.1.0](https://github.com/googleapis/nodejs-memcache/compare/v2.0.0...v2.1.0) (2022-06-30)
23+
24+
25+
### Features
26+
27+
* support regapic LRO ([#201](https://github.com/googleapis/nodejs-memcache/issues/201)) ([2151fc9](https://github.com/googleapis/nodejs-memcache/commit/2151fc9b1524bd8f3eed8492dc7baeb26d2db3ed))
28+
29+
## [2.0.0](https://github.com/googleapis/nodejs-memcache/compare/v1.5.1...v2.0.0) (2022-05-17)
30+
31+
32+
### ⚠ BREAKING CHANGES
33+
34+
* update library to use Node 12 (#196)
35+
36+
### Build System
37+
38+
* update library to use Node 12 ([#196](https://github.com/googleapis/nodejs-memcache/issues/196)) ([776f934](https://github.com/googleapis/nodejs-memcache/commit/776f93402453fc1b33394d80e19f3478efca42b4))
39+
40+
### [1.5.1](https://www.github.com/googleapis/nodejs-memcache/compare/v1.5.0...v1.5.1) (2021-09-08)
41+
42+
43+
### Bug Fixes
44+
45+
* **build:** update branch to main ([#150](https://www.github.com/googleapis/nodejs-memcache/issues/150)) ([8c534ef](https://www.github.com/googleapis/nodejs-memcache/commit/8c534efaa39919a8df10622c9fa4e7dae18f5f61))
46+
47+
## [1.5.0](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.7...v1.5.0) (2021-08-23)
48+
49+
50+
### Features
51+
52+
* turns on self-signed JWT feature flag ([#147](https://www.github.com/googleapis/nodejs-memcache/issues/147)) ([2914811](https://www.github.com/googleapis/nodejs-memcache/commit/2914811e7094e157af785fb52fe7211d2f4073cb))
53+
54+
### [1.4.7](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.6...v1.4.7) (2021-08-17)
55+
56+
57+
### Bug Fixes
58+
59+
* **deps:** google-gax v2.24.1 ([#144](https://www.github.com/googleapis/nodejs-memcache/issues/144)) ([b50e358](https://www.github.com/googleapis/nodejs-memcache/commit/b50e3582e3e0381484617b23d2e2b63c2e4c4254))
60+
61+
### [1.4.6](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.5...v1.4.6) (2021-07-21)
62+
63+
64+
### Bug Fixes
65+
66+
* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#136](https://www.github.com/googleapis/nodejs-memcache/issues/136)) ([619f23e](https://www.github.com/googleapis/nodejs-memcache/commit/619f23ec0c25c8e5dd97894ada5f65ae763d2721))
67+
68+
### [1.4.5](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.4...v1.4.5) (2021-07-12)
69+
70+
71+
### Bug Fixes
72+
73+
* **deps:** google-gax v2.17.1 ([#134](https://www.github.com/googleapis/nodejs-memcache/issues/134)) ([0a53a9b](https://www.github.com/googleapis/nodejs-memcache/commit/0a53a9b9febde8ac007105ee7356df90278c4949))
74+
75+
### [1.4.4](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.3...v1.4.4) (2021-06-29)
76+
77+
78+
### Bug Fixes
79+
80+
* **deps:** google-gax v2.17.0 with mTLS ([#131](https://www.github.com/googleapis/nodejs-memcache/issues/131)) ([f475455](https://www.github.com/googleapis/nodejs-memcache/commit/f47545548fe2bc478984a7ab715995fc32aee7cd))
81+
82+
### [1.4.3](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.2...v1.4.3) (2021-06-22)
83+
84+
85+
### Bug Fixes
86+
87+
* make request optional in all cases ([#125](https://www.github.com/googleapis/nodejs-memcache/issues/125)) ([3b296ba](https://www.github.com/googleapis/nodejs-memcache/commit/3b296ba1e2598054ed391979b616ddf03f0b89f4))
88+
89+
### [1.4.2](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.1...v1.4.2) (2021-05-29)
90+
91+
92+
### Bug Fixes
93+
94+
* GoogleAdsError missing using generator version after 1.3.0 ([#116](https://www.github.com/googleapis/nodejs-memcache/issues/116)) ([d892630](https://www.github.com/googleapis/nodejs-memcache/commit/d89263085fd359b47105c1fa3e78fd3cfb2f1d3c))
95+
96+
### [1.4.1](https://www.github.com/googleapis/nodejs-memcache/compare/v1.4.0...v1.4.1) (2021-05-12)
97+
98+
99+
### Bug Fixes
100+
101+
* **deps:** require google-gax v2.12.0 ([#107](https://www.github.com/googleapis/nodejs-memcache/issues/107)) ([5a10a63](https://www.github.com/googleapis/nodejs-memcache/commit/5a10a632b62e00b2fe488deb92885bdc14f09f92))
102+
* use require() to load JSON protos ([#110](https://www.github.com/googleapis/nodejs-memcache/issues/110)) ([8335678](https://www.github.com/googleapis/nodejs-memcache/commit/8335678c41a08fb0b811db48540ff232b802e47a))
103+
104+
## [1.4.0](https://www.github.com/googleapis/nodejs-memcache/compare/v1.3.0...v1.4.0) (2021-03-01)
105+
106+
107+
### Features
108+
109+
* add v1 version ([#88](https://www.github.com/googleapis/nodejs-memcache/issues/88)) ([105dc47](https://www.github.com/googleapis/nodejs-memcache/commit/105dc474f33479cca0888116a9d63a4f9abc59ac))
110+
* **docs:** indicate ga status ([#91](https://www.github.com/googleapis/nodejs-memcache/issues/91)) ([f5a4313](https://www.github.com/googleapis/nodejs-memcache/commit/f5a4313e5ee55887ea9c2350dcabd12b9ba2e5e0))
111+
112+
## [1.3.0](https://www.github.com/googleapis/nodejs-memcache/compare/v1.2.1...v1.3.0) (2021-01-09)
113+
114+
115+
### Features
116+
117+
* adds style enumeration ([#85](https://www.github.com/googleapis/nodejs-memcache/issues/85)) ([07e4454](https://www.github.com/googleapis/nodejs-memcache/commit/07e44541b9056d83a9505b72913c2b52ecd6e859))
118+
119+
### [1.2.1](https://www.github.com/googleapis/nodejs-memcache/compare/v1.2.0...v1.2.1) (2020-11-25)
120+
121+
122+
### Bug Fixes
123+
124+
* **browser:** check for fetch on window ([8d54934](https://www.github.com/googleapis/nodejs-memcache/commit/8d54934fcd7d4ef97f6adbbff383414bd0c23c58))
125+
* do not modify options object, use defaultScopes ([#76](https://www.github.com/googleapis/nodejs-memcache/issues/76)) ([b48f1ef](https://www.github.com/googleapis/nodejs-memcache/commit/b48f1efd8df276d542cead808f5b602fabdc047b))
126+
127+
## [1.2.0](https://www.github.com/googleapis/nodejs-memcache/compare/v1.1.0...v1.2.0) (2020-06-28)
128+
129+
130+
### Features
131+
132+
* move ts target to es2018 from es2016 ([#30](https://www.github.com/googleapis/nodejs-memcache/issues/30)) ([086b37f](https://www.github.com/googleapis/nodejs-memcache/commit/086b37f5d49f26c137bcc0941d6ec80f7ceb17fb))
133+
134+
135+
### Bug Fixes
136+
137+
* proper fallback option handling ([7515a7e](https://www.github.com/googleapis/nodejs-memcache/commit/7515a7e680ee87f63e344eab63a74522f4cf1720))
138+
139+
## [1.1.0](https://www.github.com/googleapis/nodejs-memcache/compare/v1.0.0...v1.1.0) (2020-06-04)
140+
141+
142+
### Features
143+
144+
* check status of long running operation by its name ([#23](https://www.github.com/googleapis/nodejs-memcache/issues/23)) ([2256227](https://www.github.com/googleapis/nodejs-memcache/commit/22562276b0f53e338b3fc925d8830879261f8209))
145+
146+
147+
### Bug Fixes
148+
149+
* remove eslint, update gax, fix generated protos, run the generator ([#13](https://www.github.com/googleapis/nodejs-memcache/issues/13)) ([93da9fb](https://www.github.com/googleapis/nodejs-memcache/commit/93da9fbf2da01ba4ba8caf6d3403cc08093dd5aa))
150+
151+
## 1.0.0 (2020-04-03)
152+
153+
154+
### ⚠ BREAKING CHANGES
155+
156+
* initial generation of library (#3)
157+
158+
### Features
159+
160+
* initial generation of library ([#3](https://www.github.com/googleapis/nodejs-memcache/issues/3)) ([a94f499](https://www.github.com/googleapis/nodejs-memcache/commit/a94f499651bc3f56032261c51a030c893c71d7c3))

0 commit comments

Comments
 (0)