Skip to content

Commit

Permalink
0.2.2:
Browse files Browse the repository at this point in the history
- Updated to Angular 14.
- Fixed issue where list wasn't being unrendered when list length is 0.
  • Loading branch information
lVlyke committed Oct 14, 2022
1 parent 6508955 commit 398c277
Show file tree
Hide file tree
Showing 7 changed files with 627 additions and 548 deletions.
6 changes: 6 additions & 0 deletions ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "./src/index.ts"
}
}
29 changes: 12 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@lithiumjs/ngx-virtual-scroll",
"description": "A fast and lightweight virtual scrolling solution for Angular that supports single column lists, grid lists and view caching.",
"repository": "https://github.com/lVlyke/lithium-ngx-virtual-scroll",
"version": "0.2.1",
"version": "0.2.2",
"main": "index.js",
"author": "Mychal Thompson <[email protected]>",
"license": "MIT",
Expand All @@ -15,34 +15,29 @@
"test": "node ./scripts/test.js"
},
"peerDependencies": {
"@angular/core": "8.x.x - 13.x.x",
"@angular/common": "8.x.x - 13.x.x",
"@angular/common": "8.x.x - 14.x.x",
"@angular/core": "8.x.x - 14.x.x",
"@lithiumjs/angular": ">=7.0.0",
"rxjs": "6.x.x - 7.x.x"
},
"devDependencies": {
"@angular/compiler": "^13.3.2",
"@angular/compiler-cli": "^13.3.2",
"@angular/core": "^13.3.2",
"@angular/common": "^13.3.2",
"@lithiumjs/angular": "^7.1.0",
"@types/jasmine": "^3.3.13",
"@angular/common": "^14.2.6",
"@angular/compiler": "^14.2.6",
"@angular/compiler-cli": "^14.2.6",
"@angular/core": "^14.2.6",
"@lithiumjs/angular": "^7.2.1",
"@types/jasmine": "^4.0.0",
"detest-bdd": "^1.2.0",
"fs-extra": "^10.0.1",
"istanbul": "^0.4.5",
"istanbul-cobertura-badger": "^1.3.1",
"jasmine": "^4.0.2",
"ng-packagr": "^13.3.0",
"ng-packagr": "14.2.1",
"rxjs": "~7.4.0",
"source-map-support": "^0.5.12",
"tslib": "^2.3.0",
"typescript": "~4.6.3",
"typescript": "~4.8.4",
"zone.js": "~0.11.4"
},
"dependencies": {},
"ngPackage": {
"lib": {
"entryFile": "./src/index.ts"
}
}
"dependencies": {}
}
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const BUILD_DIR = "./dist";
(function main() {
fs.removeSync(BUILD_DIR);

child_process.execSync("ng-packagr -p package.json");
child_process.execSync("ng-packagr -p ng-package.json --config tsconfig.lib.json");

for (let injectedFileName in INJECTED_FILES) {
fs.copy(INJECTED_FILES[injectedFileName], path.join(BUILD_DIR, injectedFileName));
Expand Down
2 changes: 1 addition & 1 deletion src/components/virtual-scroll/virtual-scroll.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class VirtualScroll<T> implements VirtualScrollState<T> {
this.afterViewInit$.pipe(
switchMapTo(this.scrollStateChange),
// Skip updates if we're ignoring scroll updates or item info isn't defined
filter(([, , items, itemWidth, itemHeight]) => !this.renderingViews && !!itemWidth && !!itemHeight && items.length > 0)
filter(([, , , itemWidth, itemHeight]) => !this.renderingViews && !!itemWidth && !!itemHeight)
).subscribe(([
,
scrollPosition,
Expand Down
11 changes: 2 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
// Dummy tsconfig file for VSCode
{
"extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json",
"compilerOptions": {
"strict": true,
"experimentalDecorators": true
},
"files": [],
"include": [
"src/**/*.ts"
]
"extends": "./tsconfig.lib.json"
}
11 changes: 11 additions & 0 deletions tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json",
"compilerOptions": {
// Overrides:
"strict": true
},
"files": [],
"include": [
"src/**/*.ts"
]
}
Loading

0 comments on commit 398c277

Please sign in to comment.