Skip to content

Commit

Permalink
Remove redis, axios, got, flydrive, memcached dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pierroberto committed Oct 29, 2024
1 parent 303376a commit 7c2f383
Show file tree
Hide file tree
Showing 28 changed files with 4 additions and 2,635 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ The package is available via [npm](https://www.npmjs.com/package/fortepiano), an
npm install fortepiano fp-ts io-ts io-ts-types
```

Additional packages are required, shall you want to use specific abstractions:

- [`memcached`](https://www.npmjs.com/package/memcached) and [`@types/memcached`](https://www.npmjs.com/package/@types/memcached) (`cache/Memcached`)
- [`redis`](https://www.npmjs.com/package/redis) and [`@types/redis`](https://www.npmjs.com/package/@types/redis) (`cache/Redis`)
- [`axios`](https://www.npmjs.com/package/axios) (`http/Axios`)
- [`@slynova/flydrive`](https://www.npmjs.com/package/@slynova/flydrive) (`storage/Flydrive`)

### Usage

Import modules (e.g., values) from package index and types from specific modules. "Function" module and abstraction implementations are an exception:
Expand All @@ -38,7 +31,6 @@ Import modules (e.g., values) from package index and types from specific modules
import { $type } from 'fortepiano'
import { Struct } from 'fortepiano/struct'
import { curry } from 'fortepiano/function'
import { $axios } from 'fortepiano/http/Axios'
```

## Contributing
Expand Down
42 changes: 1 addition & 41 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,66 +39,26 @@
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.3",
"@slynova/flydrive": "^1.0.0",
"@types/jest": "^26.0.24",
"@types/memcached": "^2.0.0",
"@types/node-fetch": "^2.5.12",
"@types/redis": "^2.0.0",
"@types/redis-mock": "^0.17.0",
"axios": "^0.28.0",
"eslint": "^8.16.0",
"eslint-config-facile": "^0.5.0",
"fp-ts": "^2.0.0",
"got": "^11.0.0",
"io-ts": "^2.0.0",
"io-ts-types": "^0.5.0",
"jest": "^26.6.3",
"memcached": "^2.0.0",
"memcached-mock": "^0.1.0",
"monocle-ts": "^2.3.10",
"newtype-ts": "^0.3.4",
"node-fetch": "^2.6.7",
"prettier": "^2.6.2",
"redis": "^3.0.0",
"redis-mock": "^0.56.3",
"ts-jest": "^26.5.6",
"ts-node": "^10.9.2",
"typescript": "^4.6.4"
},
"peerDependencies": {
"@slynova/flydrive": "^1.0.0",
"@types/memcached": "^2.0.0",
"@types/redis": "^2.0.0",
"axios": "^0.21.2 || ^0.28.0",
"fp-ts": "^2.0.0",
"got": "^11.0.0",
"io-ts": "^2.0.0",
"io-ts-types": "^0.5.0",
"memcached": "^2.0.0",
"redis": "^3.0.0"
},
"peerDependenciesMeta": {
"@slynova/flydrive": {
"optional": true
},
"@types/memcached": {
"optional": true
},
"@types/redis": {
"optional": true
},
"axios": {
"optional": true
},
"got": {
"optional": true
},
"memcached": {
"optional": true
},
"redis": {
"optional": true
}
"io-ts-types": "^0.5.0"
},
"packageManager": "[email protected]"
}
15 changes: 0 additions & 15 deletions src/Buffer.test.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/Buffer.ts

This file was deleted.

91 changes: 0 additions & 91 deletions src/Cache.test.ts

This file was deleted.

107 changes: 0 additions & 107 deletions src/Cache.ts

This file was deleted.

Loading

0 comments on commit 7c2f383

Please sign in to comment.