Skip to content

Commit

Permalink
Merge pull request #75 from hayd/1.0.0
Browse files Browse the repository at this point in the history
Bump deno version to 1.0.0
  • Loading branch information
hayd committed May 14, 2020
2 parents 888844b + b5e1beb commit 1c140f7
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
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.0.0-rc2
SemanticVersion: 1.0.0

HelloWorldFunction:
Type: AWS::Serverless::Function
Expand Down
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.0.0-rc2
SemanticVersion: 1.0.0

candidatesTable:
Type: AWS::DynamoDB::Table
Expand Down
6 changes: 3 additions & 3 deletions runtime/artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir -p .deno_dir/deps/https/deno.land/x/lambda/
cp mod.ts .deno_dir/deps/https/deno.land/x/lambda/mod.ts
cp types.d.ts .deno_dir/deps/https/deno.land/x/lambda/types.d.ts
# this shouldn't require a fetch to deno.land
DENO_DIR=.deno_dir ./bin/deno cache hello.ts
DENO_DIR=/src/runtime/.deno_dir ./bin/deno cache hello.ts

# assert the required files are going to be present in the zip
ls bin/deno &> /dev/null && ls bootstrap &> /dev/null && ls hello.ts &> /dev/null
Expand All @@ -19,11 +19,11 @@ cp -R .deno_dir/gen/file/$PWD/. .deno_dir/LAMBDA_TASK_ROOT
zip -qq deno-lambda-layer.zip -x '.deno_dir/gen/file/*' -r .deno_dir ./bin/deno bootstrap hello.ts
zip -qq deno-lambda-example.zip -x '.deno_dir/gen/file/*' -r .deno_dir hello.ts

DENO_DIR=.deno_dir ./bin/deno bundle hello.ts hello.bundle.js
DENO_DIR=/src/runtime/.deno_dir ./bin/deno bundle hello.ts hello.bundle.js

rm -rf .deno_dir
mkdir -p .deno_dir/deps/https/deno.land/x/lambda/
cp mod.ts .deno_dir/deps/https/deno.land/x/lambda/mod.ts
DENO_DIR=.deno_dir ./bin/deno cache pad.ts
DENO_DIR=/src/runtime/.deno_dir ./bin/deno cache pad.ts
cp -R .deno_dir/gen/file/$PWD/. .deno_dir/LAMBDA_TASK_ROOT
zip -qq pad.zip -x '.deno_dir/gen/file/*' -r .deno_dir pad.ts
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.0.0-rc2
FROM hayd/amazonlinux1-deno:1.0.0
# This is the runtime used by AWS Lambda
# plus a compatible deno executable /bin/deno.
# https://github.com/hayd/deno_docker
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.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.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.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.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.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.0.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"body\":\"Welcome to deno 1.0.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.0.0-rc2\"}"
"content": "{\"out\":\"deno 1.0.0\"}"
},
{
"status": "ok",
"content": "{\"out\":\"deno 1.0.0-rc2\"}"
"content": "{\"out\":\"deno 1.0.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.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.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.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0 🦕\"}"
},
{
"status": "ok",
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0-rc2 🦕\"}"
"content": "{\"statusCode\":200,\"headers\":{\"content-type\":\"text/html;charset=utf8\"},\"body\":\"Welcome to deno 1.0.0 🦕\"}"
}
],
"files": ["hello.ts"],
Expand Down

0 comments on commit 1c140f7

Please sign in to comment.