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

Commit

Permalink
Merge pull request #105 from lucacasonato/bump-1.4.0
Browse files Browse the repository at this point in the history
Bump to Deno 1.4.0
  • Loading branch information
lucacasonato authored Sep 13, 2020
2 parents 3a08400 + 415c705 commit 7655553
Show file tree
Hide file tree
Showing 20 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@master
with:
deno-version: 1.3.3
deno-version: 1.4.0
- name: start a local dynamodb
run: |
mkdir dyno
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
2 changes: 1 addition & 1 deletion example-aws-cdk/cdk/example-aws-cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class ExampleAwsCdkStack extends cdk.Stack {
const denoRuntime = new CfnApplication(this, 'DenoRuntime', {
location: {
applicationId: 'arn:aws:serverlessrepo:us-east-1:390065572566:applications/deno',
semanticVersion: '1.3.3'
semanticVersion: '1.4.0'
}
});

Expand Down
2 changes: 1 addition & 1 deletion example-sam/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:390065572566:applications/deno
SemanticVersion: 1.3.3
SemanticVersion: 1.4.0

HelloWorldFunction:
Type: AWS::Serverless::Function
Expand Down
2 changes: 1 addition & 1 deletion example-serverless/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export {
DynamoDBClient,
} from "https://deno.land/x/dynamodb@v1.0.0/mod.ts";

import { v4 } from "https://deno.land/std@0.68.0/uuid/mod.ts";
import { v4 } from "https://deno.land/std@0.69.0/uuid/mod.ts";
export const uuid = v4.generate;
2 changes: 1 addition & 1 deletion example-serverless/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:390065572566:applications/deno
SemanticVersion: 1.3.3
SemanticVersion: 1.4.0

candidatesTable:
Type: AWS::DynamoDB::Table
Expand Down
2 changes: 1 addition & 1 deletion example-serverless/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// You must also pass a access key/secret environment variables, but these don't have to be real e.g.
// AWS_ACCESS_KEY_ID=fakeMyKeyId AWS_SECRET_ACCESS_KEY=fakeSecretAccessKey AWS_DEFAULT_REGION=local deno run --allow-env --allow-net

import { assertEquals } from "https://deno.land/std@0.68.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts.ts";
import {
APIGatewayProxyEvent,
Context
Expand Down
2 changes: 1 addition & 1 deletion runtime/generate_types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert } from "https://deno.land/std@0.68.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.69.0/testing/asserts.ts";

const unpkg = "https://unpkg.com/@types/aws-lambda@8.10.59/";

Expand Down
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Note: This must be built in the .. context

FROM hayd/amazonlinux1-deno:1.3.3
FROM hayd/amazonlinux1-deno:1.4.0
# This is the runtime used by AWS Lambda
# plus a compatible deno executable /bin/deno.
# https://github.com/hayd/deno_docker
Expand Down
2 changes: 1 addition & 1 deletion tests/decorate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
APIGatewayProxyEvent,
Context
} from "https://deno.land/x/lambda/mod.ts";
Expand Down
4 changes: 2 additions & 2 deletions tests/deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {
assert,
assertEquals
} from "https://deno.land/std@0.68.0/testing/asserts.ts";
export { serve } from "https://deno.land/std@0.68.0/http/server.ts";
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
export { serve } from "https://deno.land/std@0.69.0/http/server.ts";
2 changes: 1 addition & 1 deletion tests/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
Context,
APIGatewayProxyEvent
} from "https://deno.land/x/lambda/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/importmap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
APIGatewayProxyEvent,
Context
} from "https://deno.land/x/lambda/mod.ts";
Expand Down
3 changes: 2 additions & 1 deletion tests/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { assertEquals } from "./deps.ts";
import { TestJson, serveEvents } from "./server.ts";
import type { TestJson } from "./server.ts";
import { serveEvents } from "./server.ts";

const dec = new TextDecoder();

Expand Down
4 changes: 2 additions & 2 deletions tests/test_bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"expected": [
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
}
],
"files": ["hello.bundle.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/test_example_zip.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"expected": [
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
}
],
"files": "deno-lambda-example.zip",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_js.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"expected": [
{
"status": "ok",
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.4.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.4.0 🦕\"}"
}
],
"files": ["hello.js"],
Expand Down
4 changes: 2 additions & 2 deletions tests/test_run_deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"expected": [
{
"status": "ok",
"content": "{\"out\":\"deno 1.3.3\"}"
"content": "{\"out\":\"deno 1.4.0\"}"
},
{
"status": "ok",
"content": "{\"out\":\"deno 1.3.3\"}"
"content": "{\"out\":\"deno 1.4.0\"}"
}
],
"files": ["handlers.ts"],
Expand Down
4 changes: 2 additions & 2 deletions tests/test_self_contained.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"expected": [
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
}
],
"files": ["hello.ts", "bootstrap", "bin/deno"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"expected": [
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.3.3 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.4.0 🦕\"}"
}
],
"files": ["hello.ts"],
Expand Down

0 comments on commit 7655553

Please sign in to comment.