Skip to content

Commit

Permalink
Merge pull request #49 from OrdnanceSurvey/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
JEPooley authored Nov 8, 2022
2 parents 08b301d + 69db177 commit e90e243
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 23 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [[0.2.2](https://github.com/OrdnanceSurvey/osdatahub-js/releases/tag/v0.2.2)] - 2022-11-08

### Added

- Simple tests for browser bundle

### Changed

- Updated README
Expand Down Expand Up @@ -45,6 +51,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[Unreleased]: [https://github.com/OrdnanceSurvey/osdatahub-js/compare/main...dev ](https://github.com/OrdnanceSurvey/osdatahub-js/compare/main...dev)

[0.2.2]: [https://github.com/OrdnanceSurvey/osdatahub-js/compare/v0.2.1...v0.2.2 ](https://github.com/OrdnanceSurvey/osdatahub-js/compare/v0.2.1...v0.2.2)

[0.2.1]: [https://github.com/OrdnanceSurvey/osdatahub-js/compare/v0.2.0...v0.2.1 ](https://github.com/OrdnanceSurvey/osdatahub-js/compare/v0.2.0...v0.2.1)

[0.2.0]: [https://github.com/OrdnanceSurvey/osdatahub-js/compare/v0.1.1...v0.2.0 ](https://github.com/OrdnanceSurvey/osdatahub-js/compare/v0.1.1...v0.2.0)
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/namesAPI.find.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645674;
window.GENERATION_DATE = 1667908405790;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/namesAPI.nearest.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645696;
window.GENERATION_DATE = 1667908405807;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/ngd.collections.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645738;
window.GENERATION_DATE = 1667908405845;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/ngd.feature.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645762;
window.GENERATION_DATE = 1667908405866;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/ngd.features.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645791;
window.GENERATION_DATE = 1667908405886;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/ngd.queryables.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645812;
window.GENERATION_DATE = 1667908405907;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/ngd.schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645831;
window.GENERATION_DATE = 1667908405929;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.bbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645870;
window.GENERATION_DATE = 1667908405967;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.find.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645890;
window.GENERATION_DATE = 1667908405983;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.nearest.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645908;
window.GENERATION_DATE = 1667908405999;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.polygon.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645929;
window.GENERATION_DATE = 1667908406015;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.postcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645948;
window.GENERATION_DATE = 1667908406033;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.radius.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645967;
window.GENERATION_DATE = 1667908406053;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/functions/placesAPI.uprn.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645985;
window.GENERATION_DATE = 1667908406069;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645619;
window.GENERATION_DATE = 1667908405737;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900644818;
window.GENERATION_DATE = 1667908405115;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/namesAPI.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645648;
window.GENERATION_DATE = 1667908405764;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ngd.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645717;
window.GENERATION_DATE = 1667908405828;

(() => {

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/placesAPI.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<p style="line-height: 28px;">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a><br>
<span id="generation-date"></span>
<script>
window.GENERATION_DATE = 1667900645850;
window.GENERATION_DATE = 1667908405947;

(() => {

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "osdatahub",
"version": "0.2.1",
"version": "0.2.2",
"description": "A JavaScript wrapper for the Ordnance Survey NGD API, Names API and Places API.",
"main": "build/index.js",
"type": "module",
"scripts": {
"test": "npm run build && jest",
"test": "npm run bundle && jest",
"test-places": "npm test -- ./tests/places.test.ts",
"test-ngd": "npm test -- ./tests/ngd.test.ts",
"test-names": "npm test -- ./tests/names.test.ts",
Expand Down
16 changes: 16 additions & 0 deletions tests/bundle.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as osdatahub from "../dist/bundle.min.js";
import { describe, expect, test } from "@jest/globals";

describe("All modules are available", () => {
test("Places", () => {
expect(osdatahub.placesAPI).toBeTruthy();
});

test("Names", () => {
expect(osdatahub.namesAPI).toBeTruthy();
});

test("NGD", () => {
expect(osdatahub.ngd).toBeTruthy();
});
});

0 comments on commit e90e243

Please sign in to comment.