Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into master, v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 5, 2021
2 parents 9ec04ef + a908e16 commit 1b22b31
Show file tree
Hide file tree
Showing 14 changed files with 759 additions and 46 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docs.yml
@@ -0,0 +1,22 @@
name: JS Commons Documentation
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- run: npm install
- run: npm run docs
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/@openeo/js-commons
keep_files: true
user_name: 'openEO CI'
user_email: openeo.ci@uni-muenster.de
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,17 @@
name: JS Commons Tests
on: [push, pull_request]
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/setup-node@v1
- uses: actions/checkout@v2
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm run docs
- run: npm run test
- run: npm run test_node
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

61 changes: 61 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,61 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.3.0] - 2021-07-05

### Added

- New method in `Utils`: `hasText`
- New classes (migrated over from the Web Editor):
- `ProcessParameter`
- `ProcessSchema`
- `ProcessDataType`

### Changed

- `npm run compat` was renamed to `npm run lint`

## [1.2.0] - 2020-09-03

### Added

- Support specifying a `keyPath` in `ProcessUtils.getCallbackParameters*()` methods to support `load_collection` filters.

## [1.1.1] - 2020-08-13

### Fixed

- `Utils.unique` did not work on arrays of objects

## [1.1.0] - 2020-08-13

### Added

- New methods in `Utils`:
- `equals`
- `mapObject`
- `mapObjectValues`
- `omitFromObject`
- `pickFromObject`
- `unique`
- New class `ProcessUtils`

## [1.0.0] - 2020-07-21

First release supporting openEO API 1.0.0.

## Prior releases

All prior releases have been documented in the [GitHub Releases](https://github.com/Open-EO/openeo-js-commons/releases).

[Unreleased]: <https://github.com/Open-EO/openeo-js-commons/compare/v1.3.0...HEAD>
[1.3.0]: <https://github.com/Open-EO/openeo-js-commons/compare/v1.2.0...v1.3.0>
[1.2.0]: <https://github.com/Open-EO/openeo-js-commons/compare/v1.1.1...v1.2.0>
[1.1.1]: <https://github.com/Open-EO/openeo-js-commons/compare/v1.1.0...v1.1.1>
[1.1.0]: <https://github.com/Open-EO/openeo-js-commons/compare/v1.0.0...v1.1.0>
[1.0.0]: <https://github.com/Open-EO/openeo-js-commons/compare/v1.0.0>
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -2,14 +2,14 @@

A set of common JavaScript functionalities for [openEO](http://openeo.org).

The [master branch](https://github.com/Open-EO/openeo-api/tree/master) is the 'stable' version of library, which is currently version **1.2.0**.
The [master branch](https://github.com/Open-EO/openeo-api/tree/master) is the 'stable' version of library, which is currently version **1.3.0**.
The [draft branch](https://github.com/Open-EO/openeo-api/tree/draft) is where active development takes place.

[![Build Status](https://travis-ci.org/Open-EO/openeo-js-commons.svg?branch=master)](https://travis-ci.org/Open-EO/openeo-js-commons)
![Dependencies](https://img.shields.io/librariesio/release/npm/@openeo/js-commons)
![Minified Size](https://img.shields.io/bundlephobia/min/@openeo/js-commons/1.2.0)
![Minzipped Size](https://img.shields.io/bundlephobia/minzip/@openeo/js-commons/1.2.0)
![Minified Size](https://img.shields.io/bundlephobia/min/@openeo/js-commons/1.3.0)
![Minzipped Size](https://img.shields.io/bundlephobia/minzip/@openeo/js-commons/1.3.0)
![Supported API Versions](https://img.shields.io/github/package-json/apiVersions/Open-Eo/openeo-js-commons/master)
![JS Commons Tests](https://github.com/Open-EO/openeo-js-commons/workflows/JS%20Commons%20Tests/badge.svg)

## Features
- Converting responses from API version 0.4 to the latest API version is supported for:
Expand Down Expand Up @@ -40,4 +40,4 @@ In a web environment you can include the library as follows:
<script src="https://cdn.jsdelivr.net/npm/@openeo/js-commons@1/dist/main.min.js"></script>
```

More information can be found in the [**JS commons documentation**](https://open-eo.github.io/openeo-js-commons/1.2.0/).
More information can be found in the [**JS commons documentation**](https://open-eo.github.io/openeo-js-commons/1.3.0/).
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@openeo/js-commons",
"version": "1.2.0",
"version": "1.3.0",
"apiVersions": [
"0.4.x",
"1.0.x"
Expand Down Expand Up @@ -44,7 +44,7 @@
"scripts": {
"docs": "jsdoc src -r -d docs/ -P package.json -R README.md",
"build": "npx webpack",
"compat": "jshint src",
"lint": "jshint src",
"test": "jest --env=jsdom",
"test_node": "jest --env=node"
}
Expand Down
9 changes: 8 additions & 1 deletion src/main.js
Expand Up @@ -2,15 +2,22 @@
const MigrateCapabilities = require('./migrate/capabilities');
const MigrateCollections = require('./migrate/collections');
const MigrateProcesses = require('./migrate/processes');
// Others
// Processes
const ProcessDataType = require('./processDataType');
const ProcessParameter = require('./processParameter');
const ProcessSchema = require('./processSchema');
const ProcessUtils = require('./processUtils');
// Others
const Versions = require('./versions');
const Utils = require('./utils');

module.exports = {
MigrateCapabilities,
MigrateCollections,
MigrateProcesses,
ProcessDataType,
ProcessParameter,
ProcessSchema,
ProcessUtils,
Versions,
Utils,
Expand Down

0 comments on commit 1b22b31

Please sign in to comment.