Skip to content

Commit 2759bce

Browse files
committed
Merge package:appengine into shared labs repository
2 parents a3eec28 + 4c24e1b commit 2759bce

File tree

879 files changed

+231608
-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.

879 files changed

+231608
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot configuration file.
2+
version: 2
3+
4+
updates:
5+
- package-ecosystem: github-actions
6+
directory: /
7+
schedule:
8+
interval: monthly
9+
labels:
10+
- autosubmit
11+
groups:
12+
github-actions:
13+
patterns:
14+
- "*"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on:
4+
schedule:
5+
# “At 00:00 (UTC) on Sunday.”
6+
- cron: '0 0 * * 0'
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
18+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
19+
20+
- name: Install dependencies
21+
run: dart pub get
22+
23+
# Disabled - this would format ~492 files.
24+
# - name: Verify formatting
25+
# run: dart format --output=none --set-exit-if-changed .
26+
27+
- name: Analyze project source
28+
run: dart analyze --fatal-infos
29+
30+
- name: Run tests
31+
run: dart test
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
15+
permissions:
16+
id-token: write # Required for authentication using OIDC
17+
pull-requests: write # Required for writing the pull request note

pkgs/appengine/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.dart_tool
2+
.packages
3+
.pub/
4+
pubspec.lock
5+
tmp/

pkgs/appengine/.test_config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test_package": {
3+
"platforms" : ["vm"]
4+
}
5+
}

pkgs/appengine/AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Dart project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.

pkgs/appengine/CHANGELOG.md

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
## 0.13.8
2+
* Require `package:protobuf` ^3.1.0.
3+
4+
## 0.13.7
5+
* Widen dependency constraint on `package:http`.
6+
7+
## 0.13.6
8+
9+
* Require Dart 2.19.
10+
* Setup `dbService` to do retries for failed requests.
11+
12+
## 0.13.5
13+
14+
* Added topics to `pubspec.yaml`.
15+
16+
## 0.13.4
17+
18+
* Implement `onConnectionStateChanged` to sync `grpc: 3.1.0`
19+
20+
## 0.13.3
21+
22+
* Populate the pubspec `repository` field.
23+
* Update the readme to add experimental verbiage.
24+
25+
## 0.13.2
26+
* Gracefully handle cases where logging fails.
27+
28+
## 0.13.1
29+
* Fix dependency on `package:gcloud` to version `0.8.0`.
30+
31+
## 0.13.0
32+
**WARNING**: Version `0.13.0` is broken, use `0.13.1`.
33+
34+
* Migrated to _null-safety_ and `package:gcloud` version `0.8.0`.
35+
36+
## 0.12.1
37+
* Setup default `authClient` in `package:gcloud`, fixing regression from
38+
introduction of _Application Default Credentials_ in `0.12.0`.
39+
40+
## 0.12.0
41+
* **Breaking**, now using the environment variable `GOOGLE_CLOUD_PROJECT`
42+
instead of `GCLOUD_PROJECT` for project name.
43+
* **Breaking**, now using
44+
[Application Default Credentials](https://cloud.google.com/docs/authentication/production)
45+
instead of using the environment variable `GCLOUD_KEY`.
46+
This allows authentication by specifying an _exported service account key_
47+
in `GOOGLE_APPLICATION_CREDENTIALS`, or running
48+
`gcloud auth application-default login` on your local machine.
49+
50+
## 0.11.0
51+
52+
* Upgrade `gcloud` to `0.7.0` with breaking changes in datastore keys.
53+
54+
## 0.10.5
55+
56+
* Handle duplicate `user-agent` headers.
57+
58+
## 0.10.4
59+
60+
* Added `Logging.reportError` to the `logging interface, for reporting errors
61+
to [Stackdriver Error Reporting](https://cloud.google.com/error-reporting/)
62+
when running in AppEngine.
63+
* Report errors logged through the `package:logging` adapter to
64+
`Logging.reportError` (for reporting to Stackdriver Error Reporting).
65+
* Updated protobuf source files.
66+
* Reduced number of unnecessarily generated protos.
67+
68+
## 0.10.3
69+
70+
* Update Protobuf to v1.0.0
71+
* Add client library identification header
72+
* Fix `grpc/datastore` tests
73+
74+
## 0.10.2
75+
76+
* Update gRPC version dependency
77+
78+
## 0.10.1
79+
80+
* Update gRPC API protos
81+
82+
## 0.10.0
83+
84+
* Revert `0.9.0`
85+
86+
## 0.9.0
87+
88+
* Instantiate new `DatastoreDB` instances for each request.
89+
90+
## 0.8.1
91+
92+
* Detect dev mode when running behind a proxy.
93+
94+
## 0.8.0
95+
96+
* Add `applicationContext` getter to `ClientContext`
97+
98+
## 0.7.3
99+
100+
* Add `onAcceptingConnections` callback to `runAppEngine()`
101+
102+
## 0.7.2
103+
104+
* Update the generated protobufs.
105+
106+
## 0.7.1
107+
108+
* Update to use `package:grpc` version 2.0
109+
110+
## 0.7.0
111+
112+
* Refactored to use `package:grpc` to talk to Logging and Datastore backends.
113+
114+
## 0.6.1
115+
116+
* Added `isCronJonRequest` as a helper method for determining if a request
117+
originates from the AppEngine cronjob scheduler.
118+
119+
## 0.6.0
120+
121+
**Breaking changes:**
122+
* Removed poorly documented assets support with broken tests.
123+
* Removed memcache as the service was never made it past alpha.
124+
125+
Users of memcache should consider using
126+
[Cloud Memorystore](https://cloud.google.com/memorystore/) instead. This comes
127+
with a redis interface for which there are multiple packages available on pub.
128+
Serving assets is just a matter of sending a file from disk. This is easy to do
129+
without the logic that this package used to contain.
130+
131+
## 0.5.1+1
132+
133+
* Support latest `pkg:http` and `pkg:http2`.
134+
135+
## 0.5.1
136+
137+
* Correct root path for serving assets.
138+
139+
## 0.5.0
140+
141+
* Support for Dart 2.0 constants and updated gcloud.
142+
143+
## 0.4.4+2
144+
145+
* Fix race condition in gRPC client between `http2Connection.isOpen` and
146+
`http2Connection.makeRequest`.
147+
148+
## 0.4.4+1
149+
150+
* Delay http/2 connection dialer by 20 ms to give client enough time to receive
151+
server settings.
152+
153+
## 0.4.4
154+
155+
* Improve output logging when memcache connections fail.
156+
* Fix Dart 2 runtime issues.
157+
158+
## 0.4.3+1
159+
160+
* When logging requests, the `appengine.googleapis.com/trace_id` label
161+
is populated.
162+
163+
## 0.4.3
164+
165+
* When logging, the following `protoPayload` values are now populated:
166+
* `instanceId`
167+
* `referrer`
168+
* `traceId` via the `X-Cloud-Trace-Context` request header.
169+
170+
* The `appengine.googleapis.com/instance_name` label is also populated for
171+
all log entries.
172+
173+
* `traceId` was also added to the `ClientContext` class.
174+
175+
## 0.4.2
176+
177+
* Add support for connecting to memcache instance defined by environment
178+
variables `GAE_MEMCACHE_HOST` and `GAE_MEMCACHE_PORT`.
179+
180+
## 0.4.1
181+
182+
* Add `shared` option to `runAppEngine` to enable multi-threaded operation
183+
with isolates.
184+
185+
## 0.4.0+3
186+
187+
* Fix an issue where models with un-indexed list properties could not be
188+
committed.
189+
190+
## 0.4.0+2
191+
192+
* Be less verbose in request logs printed during local development
193+
194+
## 0.4.0
195+
196+
Switch from Managed VMs to Flexible environment:
197+
198+
* Removed `UsersService` api.
199+
* Removed `ModulesService` api.
200+
* Removed `RemoteApi` api (was already deprecated).
201+
* Introduce new GCLOUD\_PROJECT and GCLOUD\_KEY environment variables.
202+
* Remove STORAGE\_SERVICE\_ACCOUNT\_FILE environment variable.
203+
* To prevent duplicate logging of errors, `runAppEngine` will no longer log
204+
request-specific errors on stdout if they got already logged via the
205+
request-specific log.
206+
207+
## 0.3.3+1
208+
209+
* Support `gcloud` package version `0.3.0`.
210+
211+
## 0.3.3
212+
213+
* Work around dev\_appserver.py issue (it doesn't drain stdout we therefore avoid
214+
printing anything).
215+
216+
## 0.3.2
217+
218+
* Require `protobuf` package `^0.5.0`
219+
* Support the lastest release of `fixnum` package.
220+
221+
## 0.3.1+1
222+
223+
* Improved output of `Logger.root` with `useLoggingPackageAdaptor`.
224+
225+
## 0.3.1
226+
227+
* Added optional `port` argument to `runAppEngine`.
228+
* Removed the call to `/bin/hostname`.
229+
230+
## 0.3.0+1
231+
232+
* Widen dependency constraint on `package:logging`.
233+
234+
## 0.3.0
235+
236+
* Pass the memcache expiration time to the memcache service. Before the
237+
expiration argument to Memcache.set and Memcache.setAll was ignored.
238+
239+
* Removed the expiration argument to Memcache.clear. It is not supported by
240+
the App Engine memcache API.
241+
242+
## 0.2.6+3
243+
244+
* Update dependencies to allow gcloud 0.2.0 with Cloud Pub/Sub support.
245+
246+
## 0.2.6+2
247+
248+
* Do not close `authClient`, since `registerStorageService` does it
249+
automatically.
250+
251+
## 0.2.6+1
252+
253+
* Correctly handling `x-appengine-https` header.
254+
* Turn logging of for Level.OFF
255+
256+
## 0.2.6
257+
258+
* Added adaptor for `package:logging` via `useLoggingPackageAdaptor()`.
259+
* Added workaround for incorrect `requestedUri` comming from 'dart:io'.
260+
261+
## 0.2.5
262+
263+
* Added withAppEngineServices() function which allows running arbitrary code
264+
using AppEngine services via a service scope.
265+
266+
## 0.2.4+1
267+
268+
* Change the service scope keys keys to non-private symbols.
269+
270+
## 0.2.4
271+
272+
* Run request handlers inside a service scope
273+
(see `package:gcloud/service_scope.dart`).
274+
* Insert an authenticated HTTP client into the service scope.
275+
* Insert a `memcacheService` into the service scope.
276+
* Added `isDevelopmentServer` and `isProductionEnvironment` getter to client
277+
context.
278+
* Make hostnames returned from modules service use -dot- naming to support
279+
HTTPS.
280+
* Mark `package:appengine/remote_api.dart` as deprecated.
281+
282+
## 0.2.3
283+
284+
* Small bugfix in the lowlevel memcache API implementation.
285+
286+
## 0.2.2
287+
288+
* Updated `README.md`
289+
* Widen googleapis_auth constraint to include version 0.2.0
290+
291+
## 0.2.1
292+
293+
* Small bugfix in storage API implementation
294+
* respect DART_PUB_SERVE url only in developer mode
295+
* sync db/datastore tests to the ones used in gcloud
296+
297+
## 0.2.0
298+
299+
* Use datastore/db APIs from package:gcloud
300+
* simplified annotation system
301+
* paging-based query API
302+
* Added module service
303+
* Some bugfixes
304+
305+
## 0.1.0
306+
307+
* Alpha release

0 commit comments

Comments
 (0)