Skip to content

Commit 201e236

Browse files
committed
1.0.3
1 parent 765f3ac commit 201e236

File tree

6 files changed

+202
-105
lines changed

6 files changed

+202
-105
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [8.x, 12.x, 13.x]
11+
node-version: [10.x, 12.x, 13.x]
1212
os:
1313
- ubuntu-latest
1414
- windows-latest

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [1.0.0] - 2019-11-7
8+
### Added
9+
- `getObservationsWMO` function
10+
- `getObservationsBOMID` function
11+
- `getForecastFromDescription` function
12+
- `getForecast` function
13+
- `States` Enum
14+
- `IGlobalLocation` interface
15+
- `IForecast` interface
16+
- `IPlaceForecasts` interface
17+
- `IObservation` interface
18+
- Add an ftp handler with a cache
19+
20+
## [1.0.1] - 2019-11-8
21+
### Changes
22+
- Include typescript in the npm package
23+
24+
## [1.0.2] - 2019-11-12
25+
### Added
26+
- Changelog
27+
28+
### Changes
29+
- Increase compile target from `ES2017` to `ES2018`
30+
- Update typescript, @typescript-eslint/parser and @typescript-eslint/eslint-plugin
31+
- Update `README.md` to be more helpful
32+
- NPM home page
33+
34+
### Removed
35+
- Removed support for node 8. Oldest supported version is node 10.

README.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,44 @@
1-
# bomjs
2-
A wrapper over the Australian Bureau of Meteorology api
1+
<h1 align="center">BomJS</h1>
2+
<p align="center">A wrapper over the Australian Bureau of Meteorology api</p>
3+
<div align="center">
4+
<img src="https://img.shields.io/node/v/bomjs?style=flat-square" alt="Node version" />
5+
<img alt="npm (tag)" src="https://img.shields.io/npm/v/bomjs/latest?style=flat-square">
6+
</div>
7+
8+
<p align="center"><a href="https://trickypr.github.io/bomjs/">Docs</a> • <a href="https://www.npmjs.com/package/bomjs">NPM</a> • <a href="https://github.com/trickypr/bomjs">Github</a></p>
9+
10+
## Install
11+
```sh
12+
yarn add bomjs
13+
# or
14+
npm install bomjs
15+
```
16+
17+
## Grab some observations
18+
```ts
19+
import { getObservationsWMO, getObservationsBOMID, IObservation, States } from '../dist/app'
20+
21+
// WMO
22+
const data: IObservation = await getObservationsWMO(94768, States.NSW)
23+
24+
// BOM ID
25+
const data: IObservation = await getObservationsBOMID(69017, States.NSW)
26+
```
27+
28+
## Grab forecasts
29+
```ts
30+
import { getForecastFromDescription, getForecast, States } from '../build/app'
31+
32+
// From description
33+
const forecast: IForecast = await getForecastFromDescription('canberra', States.NSW)
34+
35+
// From forecast id
36+
const forecast: IForecast = await getForecast('NSW_PW012', States.NSW)
37+
```
38+
39+
## Changelog
40+
- 1.0.0: Inital release
41+
- 1.0.1: Include typescript in the npm bundle
42+
- 1.0.2: Better docs for npm, and increase the build to `ES2018`
43+
44+
A more detailed change log is available on [the github repo](https://github.com/trickypr/bomjs/blob/master/CHANGELOG.md).

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bomjs",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A wrapper over the Australian Bureau of Meteorology api",
55
"main": "build/app.js",
66
"scripts": {
@@ -12,6 +12,9 @@
1212
"docs:dev": "vuepress dev docs",
1313
"docs:build": "vuepress build docs"
1414
},
15+
"engines": {
16+
"node": ">=10.0.0"
17+
},
1518
"repository": {
1619
"type": "git",
1720
"url": "git+https://github.com/trickypr/bomjs.git"
@@ -21,15 +24,15 @@
2124
"bugs": {
2225
"url": "https://github.com/trickypr/bomjs/issues"
2326
},
24-
"homepage": "https://github.com/trickypr/bomjs#readme",
27+
"homepage": "https://trickypr.github.io/bomjs/",
2528
"devDependencies": {
2629
"@types/ftp": "^0.3.29",
2730
"ghooks": "^2.0.4",
28-
"@typescript-eslint/eslint-plugin": "^2.6.1",
29-
"@typescript-eslint/parser": "^2.6.1",
31+
"@typescript-eslint/eslint-plugin": "^2.7.0",
32+
"@typescript-eslint/parser": "^2.7.0",
3033
"ava": "^2.4.0",
3134
"eslint": "^6.6.0",
32-
"typescript": "^3.6.4",
35+
"typescript": "^3.7.2",
3336
"vuepress": "^1.2.0"
3437
},
3538
"dependencies": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
/* Basic Options */
4-
"target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
4+
"target": "ES2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
55
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
66
// "lib": [], /* Specify library files to be included in the compilation. */
77
// "allowJs": true, /* Allow javascript files to be compiled. */

0 commit comments

Comments
 (0)