Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V 0.1 #5

Merged
merged 3 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ module.exports = {
],
rules: {
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-function-return-type": "off",
},
};
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.1.0](https://github.com/userlike/settler/compare/v0.0.3...v0.1.0) (2021-02-19)


### Code Refactoring

* make fp-ts/io-ts peer deps ([5a43a0b](https://github.com/userlike/settler/commit/5a43a0bef82b7f0eb69b1c451c577aec957ebbc9))
* update deps ([581f5d9](https://github.com/userlike/settler/commit/581f5d9db3ada8ee92c5ad7b9db5fd058ab08c4c))


### BREAKING CHANGES

* fp-ts and io-ts are now peer dependencies and must be separately installed.
* fp-ts/io-ts version requirements are increased. Typescript 4 is required.





## [0.0.3](https://github.com/userlike/settler/compare/v0.0.2...v0.0.3) (2020-07-23)

**Note:** Version bump only for package settler
Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"declaration": true,
"types": [],
"types": []
}
}
9 changes: 2 additions & 7 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"version": "0.0.3",
"version": "0.1.0",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
"publish": {
"conventionalCommits": true
}
}
"useWorkspaces": true
}
35 changes: 4 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,10 @@
"settler"
],
"scripts": {
"commit": "git-cz",
"build": "lerna run clean && lerna run build && lerna run build:cjs",
"test": "lerna run test",
"lint": "lerna run lint",
"lerna:version": "lerna version --conventional-commits",
"lerna:version:pre": "yarn lerna:version --conventional-prerelease",
"lerna:version:grad": "yarn lerna:version --conventional-graduate",
"lerna:publish": "lerna publish from-package",
"prepare": "yarn build"
"prepare": "mklib prepare"
},
"name": "settler",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@typescript-eslint/eslint-plugin": "3.7.0",
"@typescript-eslint/parser": "3.7.0",
"babel-plugin-macros": "^2.8.0",
"commitizen": "4.1.2",
"cz-lerna-changelog": "2.0.3",
"eslint": "^7.5.0",
"husky": "^4.2.5",
"jest": "^26.1.0",
"lerna": "^3.22.1",
"prettier": "^2.0.5",
"typescript": "^3.9.7"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-lerna-changelog"
}
},
"name": "settler"
"@anilanar/mklib": "^3.0.5"
}
}
18 changes: 18 additions & 0 deletions settler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.1.0](https://github.com/userlike/settler/compare/v0.0.3...v0.1.0) (2021-02-19)


### Code Refactoring

* make fp-ts/io-ts peer deps ([5a43a0b](https://github.com/userlike/settler/commit/5a43a0bef82b7f0eb69b1c451c577aec957ebbc9))
* update deps ([581f5d9](https://github.com/userlike/settler/commit/581f5d9db3ada8ee92c5ad7b9db5fd058ab08c4c))


### BREAKING CHANGES

* fp-ts and io-ts are now peer dependencies and must be separately installed.
* fp-ts/io-ts version requirements are increased. Typescript 4 is required.





## [0.0.3](https://github.com/userlike/settler/compare/v0.0.2...v0.0.3) (2020-07-23)

**Note:** Version bump only for package @userlike/settler
Expand Down
12 changes: 8 additions & 4 deletions settler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@userlike/settler",
"version": "0.0.3",
"version": "0.1.0",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"types": "dist/es/index.d.ts",
Expand All @@ -20,12 +20,16 @@
"test": "jest"
},
"devDependencies": {
"fp-ts": "^2.9.5",
"io-ts": "^2.2.14",
"io-ts-reporters": "^1.2.2"
},
"dependencies": {
"fp-ts": "^2.5.4",
"io-ts": "^2.2.2",
"ts-toolbelt": "^6.7.2"
"ts-toolbelt": "^9.3.12"
},
"peerDependencies": {
"fp-ts": "^2.9.5",
"io-ts": "^2.2.14"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 4 additions & 3 deletions settler/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ describe("types", () => {
expectType<Versions>((to) => to.notEqual<[]>());
});

type IsSame<T, I> = T extends I ? B.True : B.False;
type IsSame<T, I> = T extends I ? I extends T ? 1 : 0 : 0;

type Assertions<T> = {
equal: <I>() => IsSame<T, I>;
notEqual: <I>() => B.Not<IsSame<T, I>>;
};

function expectType<T>(
_: (assertion: Assertions<T>) => B.True
// eslint-disable-next-line @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_: (assertion: Assertions<T>) => 1
// eslint-disable-next-line @typescript-eslint/no-empty-function
): void {}
});

Expand Down
8 changes: 4 additions & 4 deletions settler/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as NEA from "fp-ts/lib/NonEmptyArray";
import * as E from "fp-ts/lib/Either";
import { pipe } from "fp-ts/lib/pipeable";
import * as NEA from "fp-ts/NonEmptyArray";
import * as E from "fp-ts/Either";
import { pipe } from "fp-ts/pipeable";
import * as io from "io-ts";
import { L } from "ts-toolbelt";
import { unsafeCoerce } from "fp-ts/lib/function";
import { unsafeCoerce } from "fp-ts/function";

// eslint-disable-next-line @typescript-eslint/no-explicit-any
interface Versioned<V extends string = string, T = any> {
Expand Down
6 changes: 4 additions & 2 deletions settler/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "../config/tsconfig.cjs.json",
"files": ["src/index.ts"],
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist/cjs",
"rootDir": "src"
"rootDir": "src",
"types": ["jest"]
}
}
6 changes: 4 additions & 2 deletions settler/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "../config/tsconfig.es.json",
"files": ["src/index.ts"],
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"outDir": "dist/es",
"rootDir": "src"
}
},
"types": ["jest"]
}
Loading