Skip to content

Commit

Permalink
Merge pull request #47 from loopholelabs/staging
Browse files Browse the repository at this point in the history
Release v0.3.1
  • Loading branch information
ShivanshVij authored Feb 17, 2023
2 parents 23ef185 + c2ae8a6 commit bd27735
Show file tree
Hide file tree
Showing 71 changed files with 9,237 additions and 678 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/golang-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Golang

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
target: wasm32-unknown-unknown
- name: Install Tinygo
uses: acifani/setup-tinygo@v1
with:
tinygo-version: 0.27.0
- name: Test
run: go test -v ./...
37 changes: 0 additions & 37 deletions .github/workflows/npm.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/test.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/typescript-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Typescript

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Cache the dependency directories
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('*.json') }}
- name: Install dependencies with npm
run: npm install --legacy-peer-deps
- name: Build with npm
run: npm run build
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

24 changes: 24 additions & 0 deletions .github/workflows/typescript-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Typescript

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- name: Cache the dependency directories
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('*.json') }}
- name: Install dependencies with npm
run: npm install --legacy-peer-deps
- name: Build with npm
run: npm run build
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v0.3.1] - 2023-02-15

### Changes

- Adding API Client for both `Golang` and `Typescript`
- Adding Registry Functionality for both `Golang` and `Typescript`
- Adding `scalefile` support for `Typescript`
- Bumping `scale-signature` version to `v0.2.7`
- Bumping `scale-signature-http` version to `v0.3.2`

## [v0.3.0] - 2023-02-14

### Changes
Expand Down
16 changes: 5 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# Scale

[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![Tests](https://github.com/loopholelabs/scale/actions/workflows/test.yml/badge.svg)](https://github.com/loopholelabs/scale/actions/workflows/test.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/loopholelabs/scale)](https://goreportcard.com/report/github.com/loopholelabs/scale)
[![Go Reference](https://pkg.go.dev/badge/github.com/loopholelabs/scale.svg)](https://pkg.go.dev/github.com/loopholelabs/scale)
[![Discord](https://dcbadge.vercel.app/api/server/JYmFhtdPeu?style=flat)](https://loopholelabs.io/discord)

[Scale](https://scale.sh) is a highly-performant WebAssembly function runtime that enables composable, language-agnostic software development.

With Scale Functions you can write code in any language, then use it from any other language, environment, or runtime, with state-of-the-art sandboxing qualities, startup times, and overall performance. This initial release includes client support for Go and Rust, with runtimes for Go and TypeScript.
[![Golang](https://github.com/loopholelabs/scale/actions/workflows/golang-tests.yml/badge.svg)](https://github.com/loopholelabs/scale/actions/workflows/golang-tests.yml)
[![Typescript](https://github.com/loopholelabs/scale/actions/workflows/typescript-tests.yml/badge.svg)](https://github.com/loopholelabs/scale/actions/workflows/typescript-tests.yml)

## Important note about releases and stability
[Scale](https://scale.sh) is a highly-performant WebAssembly function runtime that enables composable, language-agnostic software development.

This repository generally follows [Semantic Versioning](https://semver.org/). However, **this library is currently in
Beta** and is still considered experimental. Breaking changes of the library will _not_ trigger a new major release. The
same is true for selected other new features explicitly marked as
**EXPERIMENTAL** in [the changelog](/CHANGELOG.md).
With Scale Functions you can write code in any language, then use it from any other language, environment, or runtime, with state-of-the-art sandboxing qualities, startup times, and overall performance. This initial release includes client support for [Golang](https://golang.org) and [Rust](https://www.rust-lang.org/), with runtimes for [Golang](https://golang.org) and [Typescript](https://www.typescriptlang.org/).

## Usage and Documentation

Expand Down
31 changes: 29 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,46 @@ module github.com/loopholelabs/scale
go 1.18

require (
github.com/go-openapi/errors v0.20.3
github.com/go-openapi/runtime v0.25.0
github.com/go-openapi/strfmt v0.21.3
github.com/go-openapi/swag v0.22.3
github.com/google/uuid v1.3.0
github.com/loopholelabs/auth v0.2.25
github.com/loopholelabs/polyglot-go v0.5.1
github.com/loopholelabs/scale-signature v0.2.2
github.com/loopholelabs/scale-signature-http v0.3.0
github.com/loopholelabs/scale-signature v0.2.7
github.com/loopholelabs/scale-signature-http v0.3.2
github.com/loopholelabs/scalefile v0.1.5
github.com/stretchr/testify v1.8.1
github.com/tetratelabs/wazero v1.0.0-pre.8
)

require (
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/analysis v0.21.2 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.6 // indirect
github.com/go-openapi/loads v0.21.1 // indirect
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/validate v0.21.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/yalue/merged_fs v1.2.2 // indirect
go.mongodb.org/mongo-driver v1.10.0 // indirect
go.opentelemetry.io/otel v1.11.1 // indirect
go.opentelemetry.io/otel/trace v1.11.1 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit bd27735

Please sign in to comment.