Skip to content

Commit

Permalink
Merge branch 'release/2.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vankeisb committed May 3, 2021
2 parents 66069dc + 908ec87 commit 8b32827
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 12 deletions.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## v2.0.1 (21/04/2021)

#### closed

- [**closed**] performance improvements [#59](https://github.com/vankeisb/react-tea-cup/pull/59)
- [**closed**] prettify all code [#60](https://github.com/vankeisb/react-tea-cup/pull/60)
- [**closed**] fix raising errors from JSON parse to be strings [#56](https://github.com/vankeisb/react-tea-cup/pull/56)

#### dependencies

- [**dependencies**] Bump y18n from 3.2.1 to 3.2.2 [#58](https://github.com/vankeisb/react-tea-cup/pull/58)

---

## v2.0.0 (24/03/2021)

#### closed

- [**closed**] [breaking change] intra peer dependencies / no re-exports [#57](https://github.com/vankeisb/react-tea-cup/pull/57)

---

## v1.5.3 (23/03/2021)

#### closed

- [**closed**] Moved react to peer dependency [#55](https://github.com/vankeisb/react-tea-cup/pull/55)
- [**closed**] program testing [#49](https://github.com/vankeisb/react-tea-cup/pull/49)
- [**closed**] introduce updatePiped [#54](https://github.com/vankeisb/react-tea-cup/pull/54)

#### dependencies

- [**dependencies**] Bump elliptic from 6.5.3 to 6.5.4 [#53](https://github.com/vankeisb/react-tea-cup/pull/53)

---

## v1.5.2 (14/12/2020)
*No changelog for this release.*

Expand Down
27 changes: 27 additions & 0 deletions bump-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const fs = require('fs');

const VERSION = process.env.VERSION;

console.log("Bumping to " + VERSION);

function withJsonFile(name, callback) {
const text = fs.readFileSync(name);
const json = JSON.parse(text);
callback(json)
fs.writeFileSync(name, JSON.stringify(json, null, " "))
}

withJsonFile("./core/package.json", j => {
j.version = VERSION;
});

withJsonFile("./tea-cup/package.json", j => {
j.version = VERSION;
j.peerDependencies['tea-cup-core'] = '^' + VERSION;
});

withJsonFile('./samples/package.json', j => {
j.dependencies['tea-cup-core'] = VERSION;
j.dependencies['react-tea-cup'] = VERSION;
});

4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tea-cup-core",
"version": "2.0.1",
"version": "2.1.0",
"description": "react-tea-cup core classes and utilities (Maybe etc)",
"author": "Rémi Van Keisbelck <[email protected]>",
"license": "MIT",
Expand All @@ -18,4 +18,4 @@
"tsc": "tsc",
"compile": "rimraf dist && tsc"
}
}
}
1 change: 1 addition & 0 deletions core/src/TeaCup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ export * from './ObjectSerializer';
export * from './Try';
export * from './UUID';
export * from './Port';
export * from './UpdatePiped';
6 changes: 3 additions & 3 deletions samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scripts": "3.4.3",
"react-tea-cup": "^2.0.1",
"tea-cup-core": "^2.0.1"
"react-tea-cup": "2.1.0",
"tea-cup-core": "2.1.0"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -39,4 +39,4 @@
"jest-fetch-mock": "^2.1.2",
"ts-jest": "^24.1.0"
}
}
}
6 changes: 3 additions & 3 deletions tea-cup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tea-cup",
"version": "2.0.1",
"version": "2.1.0",
"description": "Put some TEA in your React.",
"author": "Rémi Van Keisbelck <[email protected]>",
"license": "MIT",
Expand All @@ -22,11 +22,11 @@
"dependencies": {},
"peerDependencies": {
"react": "^16.7.0",
"tea-cup-core": "^2.0.1"
"tea-cup-core": "^2.1.0"
},
"devDependencies": {
"@types/jsdom": "^16.2.5",
"@types/react": "^16.7.22",
"jsdom": "^16.4.0"
}
}
}
1 change: 1 addition & 0 deletions tea-cup/src/TeaCup/Navigation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const router: Router<MyRoute> = new Router(

expectRoute('/', home());
expectRoute('/songs', songs(nothing));
expectRoute('/songs/', songs(nothing));
expectRoute('/song/123', song(123));
expectRoute('/song/123/edit', song(123, true));
expectRoute('/songs?q=foobar', songs(just('foobar')));
Expand Down
2 changes: 1 addition & 1 deletion tea-cup/src/TeaCup/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export class RouteDef<R> implements RouteBase<R> {

static sanitizePath(path: string): string {
const p1 = path.startsWith('/') ? path.substring(1) : path;
return p1.endsWith('/') ? p1.substring(0, p1.length - 2) : p1;
return p1.endsWith('/') ? p1.substring(0, p1.length - 1) : p1;
}

static splitPath(path: string): ReadonlyArray<string> {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11705,9 +11705,9 @@ sshpk@^1.7.0:
tweetnacl "~0.14.0"

ssri@^6.0.0, ssri@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8"
integrity sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==
version "6.0.2"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.2.tgz#157939134f20464e7301ddba3e90ffa8f7728ac5"
integrity sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==
dependencies:
figgy-pudding "^3.5.1"

Expand Down

0 comments on commit 8b32827

Please sign in to comment.