Skip to content

Releases: golemfactory/yapapi

0.13.1

26 Nov 11:50
Compare
Choose a tag to compare

Release Notes - yapapi v0.13.1

New Features

  • Added support for Partner Scheme outbound access in dapp-runner
  • Added support for Partner Scheme outbound in Yapapi

Changes

Node Descriptor Support

  • Added new node_descriptor field to manifest requests
  • When using node descriptor:
    • Only manifest is required (no signature/cert needed).
    • Node descriptor must be provided as a dictionary
  • Added new partner scheme example in external/external-api-request

Simplified Manifest Handling

  • Automatic base64 encoding for manifest-related files
    • No need to manually encode manifest, signature, or certificate files
    • Accepts both string and bytes input
    • Automatically detects and preserves existing base64 encoding
# Before:
manifest = base64.b64encode(open("manifest.json", "rb").read()).decode()
manifest_sig = base64.b64encode(open("manifest.sig", "rb").read()).decode()

# Now:
manifest = open("manifest.json", "rb").read()  # or just pass the file contents directly
manifest_sig = open("manifest.sig", "rb").read()

Breaking Changes

None. All changes are backward compatible.

0.13.0

04 Jun 14:19
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.12.0...0.13.0

0.13.0a0

03 Jun 13:57
Compare
Choose a tag to compare
0.13.0a0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.12.0-alpha.1...0.13.0a0

0.12.0

23 Aug 13:22
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.11.0...0.12.0

0.12.0-alpha.1

21 Aug 13:52
Compare
Choose a tag to compare
0.12.0-alpha.1 Pre-release
Pre-release

What's Changed

  • fix the signature of the emitted ServiceStateChanged event to match t… by @shadeofblue in #1145

Full Changelog: 0.12.0-alpha.0...0.12.0-alpha.1

0.12.0-alpha.0

18 Aug 08:54
Compare
Choose a tag to compare
0.12.0-alpha.0 Pre-release
Pre-release

What's Changed

Full Changelog: 0.11.0...0.12.0-alpha.0

0.11.0

29 Jun 15:14
Compare
Choose a tag to compare

Changelog

The main feature of yapapi 0.11 is the addition of the manifest creation helper. It can be used to deploy those payloads that require a manifest but don't require a manifest signature - e.g. vm payloads using outgoing network connections that are whitelisted on provider nodes.

Deploying such payloads should be almost as straightforward as those that don't require manifests.

Example usage:

import base64
import json
from yapapi.payload import vm
from yapapi.payload.manifest import Manifest

async def generate_manifest():
    manifest_obj = await Manifest.generate(
        "05270a8a938ff5f5e30b0e61bc983a8c3e286c5cd414a32e1a077657",
        outbound_urls=["http://bor.golem.network"]
    )

    manifest = json.dumps(manifest_obj.dict(by_alias=True))

    payload = await vm.manifest(
        base64.b64encode(manifest.encode("utf-8")).decode("ascii"),
        capabilities=["vpn", "manifest-support"]
    )

    ...

Major Features

Minor Features

Fixes

Maintenance

Full Changelog: 0.10.1...0.11.0

0.11.0-alpha.0

13 Jun 13:03
Compare
Choose a tag to compare
0.11.0-alpha.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.10.1...0.11.0-alpha.0

0.10.1

12 Jun 08:57
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.10.0...0.10.1

0.10.1-alpha.1

07 Jun 15:24
Compare
Choose a tag to compare
0.10.1-alpha.1 Pre-release
Pre-release

What's Changed

Full Changelog: 0.10.1-alpha.0...0.10.1-alpha.1