angular-async-cache
Advanced tools
Comparing version 0.4.1 to 1.0.0
@@ -5,2 +5,18 @@ # Change Log | ||
<a name="1.0.0"></a> | ||
# [1.0.0](https://github.com/mattlewis92/angular-async-cache/compare/v0.4.1...v1.0.0) (2017-07-16) | ||
### Features | ||
* **cachedHttp:** use new http client ([406f99d](https://github.com/mattlewis92/angular-async-cache/commit/406f99d)) | ||
### BREAKING CHANGES | ||
* **cachedHttp:** angular 4.3 or higher is now required to use this library. The new http client is | ||
now used for cached http requests instead of the @angular/http package | ||
<a name="0.4.1"></a> | ||
@@ -7,0 +23,0 @@ ## [0.4.1](https://github.com/mattlewis92/angular-async-cache/compare/v0.4.0...v0.4.1) (2017-03-24) |
122
package.json
{ | ||
"name": "angular-async-cache", | ||
"version": "0.4.1", | ||
"description": "A simple utility to help with caching of promises and observables to enable an easy offline first approach in angular 2.0+ apps", | ||
"main": "./dist/umd/angular-async-cache.js", | ||
"module": "./dist/esm/src/index.js", | ||
"typings": "./dist/esm/src/index.d.ts", | ||
"version": "1.0.0", | ||
"description": "A simple utility to help with caching of promises and observables to enable an easy offline first approach in angular 4+ apps", | ||
"main": "./bundles/angular-async-cache.umd.js", | ||
"module": "./index.js", | ||
"typings": "./index.d.ts", | ||
"scripts": { | ||
"start": "npm run test:watch", | ||
"build:umd": "webpack --config webpack.config.umd.js", | ||
"build:umd": "webpack --config webpack.config.umd.ts", | ||
"build:ngc": "ngc -p tsconfig-ngc.json", | ||
"build:dist": "npm run build:umd && npm run build:ngc", | ||
"build:clean": "rm -rf dist", | ||
"test": "karma start", | ||
"test:watch": "karma start --watch", | ||
"build:clean": "del-cli dist", | ||
"test": "karma start --single-run && npm run build:dist && npm run build:clean", | ||
"test:watch": "karma start --auto-watch", | ||
"commit": "git-cz", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"typedoc": "typedoc --options typedoc.json src/*.ts", | ||
"compodoc": "compodoc -p tsconfig-compodoc.json -d docs --disableGraph --disableCoverage --disablePrivateOrInternalSupport", | ||
"copyfiles": "copyfiles package.json LICENSE README.md CHANGELOG.md dist", | ||
"prerelease": "npm test", | ||
"release": "standard-version --first-release && git push --follow-tags origin master && npm run build:dist && npm publish", | ||
"postrelease": "npm run build:clean" | ||
"release:git": "standard-version && git push --follow-tags origin master", | ||
"release:npm": "npm run build:dist && npm run copyfiles && npm publish dist", | ||
"release": "npm run release:git && npm run release:npm", | ||
"postrelease": "npm run build:clean", | ||
"commitmsg": "validate-commit-msg", | ||
"codecov": "cat coverage/lcov.info | codecov" | ||
}, | ||
@@ -30,2 +34,4 @@ "repository": { | ||
"angular", | ||
"angular4", | ||
"http", | ||
"cache" | ||
@@ -40,58 +46,58 @@ ], | ||
"devDependencies": { | ||
"@angular/common": "^2.1.0", | ||
"@angular/compiler": "^2.1.0", | ||
"@angular/compiler-cli": "^2.1.0", | ||
"@angular/core": "^2.1.0", | ||
"@angular/http": "^2.1.2", | ||
"@angular/platform-browser": "^2.1.0", | ||
"@angular/platform-browser-dynamic": "^2.1.0", | ||
"@types/chai": "^3.4.30", | ||
"@types/core-js": "^0.9.32", | ||
"@types/jasmine": "^2.2.33", | ||
"@types/sinon": "^1.16.27", | ||
"@angular/common": "^4.0.0", | ||
"@angular/compiler": "^4.0.0", | ||
"@angular/compiler-cli": "^4.0.0", | ||
"@angular/core": "^4.0.0", | ||
"@angular/language-service": "^4.0.0", | ||
"@angular/platform-browser": "^4.0.0", | ||
"@angular/platform-browser-dynamic": "^4.0.0", | ||
"@compodoc/compodoc": "^1.0.0-beta.3", | ||
"@types/chai": "^4.0.0", | ||
"@types/html-webpack-plugin": "^2.11.2", | ||
"@types/mocha": "^2.2.41", | ||
"@types/node": "^8.0.13", | ||
"@types/sinon": "^2.1.2", | ||
"@types/sinon-chai": "^2.7.26", | ||
"awesome-typescript-loader": "^2.2.4", | ||
"chai": "^3.5.0", | ||
"@types/webpack": "^3.0.4", | ||
"chai": "^4.0.0", | ||
"codecov": "^2.1.0", | ||
"codelyzer": "^3.0.0", | ||
"commitizen": "^2.8.1", | ||
"concurrently": "^3.0.0", | ||
"conventional-changelog": "^1.1.0", | ||
"conventional-changelog-cli": "^1.2.0", | ||
"copyfiles": "^1.2.0", | ||
"core-js": "^2.4.1", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"ghooks": "^1.3.2", | ||
"imports-loader": "^0.6.5", | ||
"jasmine-core": "^2.5.0", | ||
"karma": "^1.3.0", | ||
"karma-coverage": "^1.1.0", | ||
"karma-jasmine": "^1.0.2", | ||
"karma-phantomjs-launcher": "^1.0.0", | ||
"karma-remap-istanbul": "^0.2.1", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"del-cli": "^1.0.0", | ||
"fork-ts-checker-webpack-plugin": "^0.2.2", | ||
"husky": "^0.14.3", | ||
"istanbul-instrumenter-loader": "^2.0.0", | ||
"karma": "^1.4.1", | ||
"karma-chrome-launcher": "^2.1.1", | ||
"karma-coverage-istanbul-reporter": "^1.0.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-mocha-reporter": "^2.2.3", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-webpack": "^1.8.0", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"rxjs": "5.0.0-beta.12", | ||
"sinon": "^1.17.4", | ||
"karma-webpack": "^2.0.1", | ||
"mocha": "^3.3.0", | ||
"rxjs": "^5.0.1", | ||
"sinon": "^2.0.0", | ||
"sinon-chai": "^2.8.0", | ||
"sourcemap-istanbul-instrumenter-loader": "^0.2.0", | ||
"standard-version": "^3.0.0", | ||
"tslint": "^3.15.1", | ||
"tslint-loader": "^2.1.4", | ||
"typedoc": "^0.5.0", | ||
"typescript": "^2.0.3", | ||
"standard-version": "^4.0.0", | ||
"ts-loader": "^2.3.0", | ||
"ts-node": "^3.0.0", | ||
"tslib": "^1.7.1", | ||
"tslint": "^5.1.0", | ||
"tslint-loader": "^3.5.3", | ||
"typescript": "~2.4.1", | ||
"validate-commit-msg": "^2.8.0", | ||
"webpack": "^1.13.0", | ||
"webpack-dev-server": "^1.16.1", | ||
"zone.js": "^0.6.12" | ||
"webpack": "^3.3.0", | ||
"webpack-angular-externals": "^1.0.0", | ||
"webpack-rxjs-externals": "^1.0.0", | ||
"zone.js": "^0.8.4" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": ">=2.0.0 <5.0.0", | ||
"@angular/http": ">=2.0.0 <5.0.0" | ||
"@angular/common": "^4.3.0", | ||
"@angular/core": "^4.3.0" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"config": { | ||
"ghooks": { | ||
"commit-msg": "validate-commit-msg" | ||
}, | ||
"commitizen": { | ||
@@ -98,0 +104,0 @@ "path": "node_modules/cz-conventional-changelog" |
@@ -19,3 +19,3 @@ # angular async cache | ||
A simple utility to help with caching of promises and observables to enable an easy offline first approach in angular 2.0+ apps | ||
A simple utility to help with caching of promises and observables to enable an easy offline first approach in angular 4.3+ apps | ||
@@ -82,3 +82,2 @@ ## Demo | ||
constructor(private cachedHttp: CachedHttp) { | ||
// note how we don't do `.map(res => res.json())` as this is already handled by the cachedHttp service | ||
// only the get method is supported (as other http verbs are destructive) | ||
@@ -107,3 +106,3 @@ // The second argument can be any options you would pass to a normal http get call | ||
const cars$: Observable<Car[]> = this.http.get('/cars').map(res => res.json()); | ||
const cars$: Observable<Car[]> = this.http.get('/cars'); | ||
return asyncCache.wrap(cars$, '/cars', { | ||
@@ -133,3 +132,3 @@ driver: this.memoryDriver, // override the default and cache the data in memory | ||
constructor(http: Http) { | ||
this.cars = http.get('/cars').map(res => res.json()); | ||
this.cars = http.get('/cars'); | ||
} | ||
@@ -153,3 +152,2 @@ | ||
### Release | ||
* Bump the version in package.json (once the module hits 1.0 this will become automatic) | ||
```bash | ||
@@ -156,0 +154,0 @@ npm run release |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
176416
44
960
50
155
6