Skip to content

Releases: newfold-labs/wp-module-runtime

v1.0.2

03 Aug 17:30
Compare
Choose a tag to compare

What's Changed

[5c1081f] @aulisius - Bump version to 1.0.2
[17e03f3] @aulisius - Increase priority of loading the runtime script

Full Changelog: v1.0.1...v1.0.2

v1.0.1

21 Jun 08:32
Compare
Choose a tag to compare

What's Changed

[5dab935] @aulisius - Fix getter for siteDetails
[926f8e4] @aulisius - Fix formatting
[afb2d95] @aulisius - Add missing capabilites to type definition
[60a870c] @aulisius - Add separate method to load runtime into page

Full Changelog: v1.0.0...v1.0.1

v1.0.0

20 Jun 15:37
Compare
Choose a tag to compare

This is the first release for the runtime module.

The module provides an uniform interface with which one can access the runtime values needed by the plugin and various modules.

Installation

npm install @newfold-labs/wp-module-runtime

Usage

import { NewfoldRuntime } from "@newfold-labs/wp-module-runtime";

function Component(props) {
  if (NewfoldRuntime.hasCapability("hasYithExtended")) {
    //
  }
}