Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 4241c20

Browse files
committed
fix: updated dependencies and switched to lib imports
1 parent 6b9e9b5 commit 4241c20

File tree

9 files changed

+45
-29
lines changed

9 files changed

+45
-29
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@angular/platform-browser": "~7.2.0",
2121
"@angular/platform-browser-dynamic": "~7.2.0",
2222
"@angular/router": "~7.2.0",
23-
"@nll/datum": "^2.2.1",
23+
"@nll/datum": "^2.5.1",
2424
"fp-ts": "^2.0.5",
2525
"io-ts": "^2.0.1",
2626
"rxjs": "^6.5.2",

projects/ngx/package.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
22
"name": "@nll/ngx",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"private": false,
55
"peerDependencies": {
6-
"@nll/datum": "^2.2.1",
6+
"@nll/datum": "^2.5.1",
77
"fp-ts": "^2.0.5",
88
"io-ts": "^2.0.1"
9-
}
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/nullpub/ngx.git"
13+
},
14+
"keywords": [
15+
"fp-ts",
16+
"adt",
17+
"AsyncData"
18+
],
19+
"author": "Brandon Blaylock <brandon@null.pub> (https://blaylock.dev)",
20+
"license": "MPL-2.0",
21+
"bugs": {
22+
"url": "https://github.com/nullpub/ngx/issues"
23+
},
24+
"homepage": "https://github.com/nullpub/ngx#readme"
1025
}

projects/ngx/src/lib/datum/datum-either.directive.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef } from '@angular/core';
2-
import { getEq, initial, isInitial, isPending, isRefresh, isReplete } from '@nll/datum/es6/Datum';
3-
import { DatumEither } from '@nll/datum/es6/DatumEither';
4-
import { getEq as getEqEither, isLeft } from 'fp-ts/es6/Either';
5-
import { Eq } from 'fp-ts/es6/Eq';
6-
import { fold, fromNullable } from 'fp-ts/es6/Option';
7-
import { pipe } from 'fp-ts/es6/pipeable';
2+
import { getEq, initial, isInitial, isPending, isRefresh, isReplete } from '@nll/datum/lib/Datum';
3+
import { DatumEither } from '@nll/datum/lib/DatumEither';
4+
import { getEq as getEqEither, isLeft } from 'fp-ts/lib/Either';
5+
import { Eq } from 'fp-ts/lib/Eq';
6+
import { fold, fromNullable } from 'fp-ts/lib/Option';
7+
import { pipe } from 'fp-ts/lib/pipeable';
88

99
interface DatumEitherCaseView {
1010
viewContainerRef: ViewContainerRef;

projects/ngx/src/lib/datum/datum.directive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef } from '@angular/core';
2-
import { Datum, getEq, initial, isInitial, isPending, isRefresh, isReplete } from '@nll/datum/es6/Datum';
3-
import { DatumEither } from '@nll/datum/es6/DatumEither';
4-
import { Eq } from 'fp-ts/es6/Eq';
5-
import { fold, fromNullable } from 'fp-ts/es6/Option';
6-
import { pipe } from 'fp-ts/es6/pipeable';
2+
import { Datum, getEq, initial, isInitial, isPending, isRefresh, isReplete } from '@nll/datum/lib/Datum';
3+
import { DatumEither } from '@nll/datum/lib/DatumEither';
4+
import { Eq } from 'fp-ts/lib/Eq';
5+
import { fold, fromNullable } from 'fp-ts/lib/Option';
6+
import { pipe } from 'fp-ts/lib/pipeable';
77

88
interface DatumCaseView {
99
viewContainerRef: ViewContainerRef;

projects/ngx/src/lib/either/either.directive.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef } from '@angular/core';
2-
import { Either, isLeft, isRight } from 'fp-ts/es6/Either';
3-
import { fold, fromNullable } from 'fp-ts/es6/Option';
4-
import { pipe } from 'fp-ts/es6/pipeable';
2+
import { Either, isLeft, isRight } from 'fp-ts/lib/Either';
3+
import { fold, fromNullable } from 'fp-ts/lib/Option';
4+
import { pipe } from 'fp-ts/lib/pipeable';
55

66
interface EitherCaseView {
77
viewContainerRef: ViewContainerRef;

projects/ngx/src/lib/option/option.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef } from '@angular/core';
2-
import { fold, fromNullable, isNone, isSome, none, Option } from 'fp-ts/es6/Option';
3-
import { pipe } from 'fp-ts/es6/pipeable';
2+
import { fold, fromNullable, isNone, isSome, none, Option } from 'fp-ts/lib/Option';
3+
import { pipe } from 'fp-ts/lib/pipeable';
44

55
interface OptionCaseView {
66
viewContainerRef: ViewContainerRef;

src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component } from '@angular/core';
2-
import { DatumEither, success } from '@nll/datum/es6/DatumEither';
3-
import { Either, right } from 'fp-ts/es6/Either';
4-
import { none, Option } from 'fp-ts/es6/Option';
2+
import { DatumEither, success } from '@nll/datum/lib/DatumEither';
3+
import { Either, right } from 'fp-ts/lib/Either';
4+
import { none, Option } from 'fp-ts/lib/Option';
55
import * as t from 'io-ts';
66
import { ioToForm } from 'projects/ngx/src/lib/io-form';
77

src/app/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { datum, datumEither } from '@nll/datum';
2-
import { left, right } from 'fp-ts/es6/Either';
3-
import { none, some } from 'fp-ts/es6/Option';
1+
import * as datum from '@nll/datum/lib/Datum';
2+
import * as datumEither from '@nll/datum/lib/DatumEither';
3+
import { left, right } from 'fp-ts/lib/Either';
4+
import { none, some } from 'fp-ts/lib/Option';
45

56
export const genRandomDatumEither = (): datumEither.DatumEither<
67
Error,

0 commit comments

Comments
 (0)