Skip to content

Commit df906a5

Browse files
committed
Merge branch 'release/1.1.20'
2 parents e1db6e6 + 97c8db0 commit df906a5

File tree

87 files changed

+4944
-4014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+4944
-4014
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
<a name="1.1.20"></a>
2+
3+
## [1.1.20](https://github.com/compodoc/compodoc/compare/1.1.19...1.1.20) - 2023-05-23
4+
5+
### Merged
6+
7+
- fix(Input): Add support for Object Expressions in Input decorators [#1326](https://github.com/compodoc/compodoc/pull/1326), Thanks [valentinpalkovic](https://github.com/valentinpalkovic)
8+
- fix(app): overview depth [#1310](https://github.com/compodoc/compodoc/pull/1310), Thanks [albeniraouf](https://github.com/albeniraouf)
9+
- Translates to Bulgarian [#1312](https://github.com/compodoc/compodoc/pull/1312), Thanks [3phase](https://github.com/3phase)
10+
11+
### Bug fixes
12+
13+
- feat(app): Directive composition API for directives and components ([127076a](https://github.com/compodoc/compodoc/commit/127076a)), closes [#1340](https://github.com/compodoc/compodoc/issues/1340)
14+
- feat(app): Required Inputs ([e1a5396](https://github.com/compodoc/compodoc/commit/e1a5396)), closes [#1340](https://github.com/compodoc/compodoc/issues/1340)
15+
- feat(app): Standalone components, directives and pipes support ([cb02ca0](https://github.com/compodoc/compodoc/commit/cb02ca0)), closes [#1323](https://github.com/compodoc/compodoc/issues/1323)
16+
- fix(app): support exportAs for directives ([76a8f34](https://github.com/compodoc/compodoc/commit/76a8f34)), closes [#1328](https://github.com/compodoc/compodoc/issues/1328)
17+
- feat(app): bump @compodoc/ngd-transformer ([ef9bd94](https://github.com/compodoc/compodoc/commit/ef9bd94)), closes [#1311](https://github.com/compodoc/compodoc/issues/1311)
18+
- fix(app): service/injectable export in module providers ([34967a9](https://github.com/compodoc/compodoc/commit/34967a9)), closes [#1290](https://github.com/compodoc/compodoc/issues/1290)
19+
- fix(app): missing rel attribute with \_blank links ([c8379e0](https://github.com/compodoc/compodoc/commit/c8379e0)), closes [#1282](https://github.com/compodoc/compodoc/issues/1282)
20+
- feat(app): Add specific id in each html section ([03ac1ad](https://github.com/compodoc/compodoc/commit/03ac1ad)), closes [#1241](https://github.com/compodoc/compodoc/issues/1241)
21+
- fix(app): Invalid links to a class when the class name includes an interface name ([047cedb](https://github.com/compodoc/compodoc/commit/047cedb)), closes [#1239](https://github.com/compodoc/compodoc/issues/1239)
22+
- fix(routing): path wrongly resolved during routing analysis ([1722ca3](https://github.com/compodoc/compodoc/commit/1722ca3)), closes [#1170](https://github.com/compodoc/compodoc/issues/1170)
23+
124
<a name="1.1.19"></a>
225

326
## [1.1.19](https://github.com/compodoc/compodoc/compare/1.1.18...1.1.19) (2022-01-10)

docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
## Libraries used inside generate static HTML pages
44

5-
- bootstrap native : 1.1.0
5+
- bootstrap native : 5.0.0
66
- d3 from d3-flextree : 3.x.x
77
- deep-iterator : 2.4.0
88
- es6-shim : 0.35.1
99
- EventDispatcher
1010
- htmlparser : 2.0.0
1111
- innersvg : 2.x.x
12-
- prism : 1.9.0
12+
- prism : 1.29.0
1313
- promise
14-
- svg-pan-zoom : 3.5.2
15-
- tablesort : 5.0.2
16-
- vis : 4.20.1
14+
- svg-pan-zoom : 3.6.1
15+
- tablesort : 5.4.0
16+
- vis : 4.21.0
1717
- zepto : 1.2.0
18-
- lunr : 2.1.5
18+
- lunr : 2.3.9
1919

2020
## Entry files
2121

package-lock.json

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

package.json

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@compodoc/compodoc",
3-
"version": "1.1.19",
3+
"version": "1.1.20",
44
"description": "The missing documentation tool for your Angular application",
55
"main": "dist/index.js",
66
"bin": {
@@ -25,7 +25,7 @@
2525
"pretest": "tsc -p test/tsconfig.json && node test/dist/cli-clean-root-folder.js",
2626
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json TS_NODE_DISABLE_WARNINGS=1 nyc --reporter=lcov mocha --config test/.mocharc.json && node test/dist/cli-revert-root-folder.js",
2727
"posttest": "rimraf test/dist",
28-
"test:watch": "npm-watch",
28+
"test:watch": "npm-watch build",
2929
"test:simple-doc": "ts-node ./bin/index-cli.js -p ./test/fixtures/sample-files/tsconfig.simple.json -d doc -s --port 4000 & sleep 20",
3030
"presaucelabs-test-e2e-mocha": "npm run test:simple-doc",
3131
"saucelabs-test-e2e-mocha": "./node_modules/.bin/wdio wdio-saucelabs.conf.js",
@@ -84,86 +84,86 @@
8484
},
8585
"homepage": "https://github.com/compodoc/compodoc#readme",
8686
"dependencies": {
87-
"@angular-devkit/schematics": "^15.1.1",
88-
"@babel/core": "^7.20.12",
89-
"@babel/preset-env": "^7.20.2",
87+
"@angular-devkit/schematics": "^16.0.1",
88+
"@babel/core": "^7.21.8",
89+
"@babel/preset-env": "^7.21.5",
9090
"@compodoc/live-server": "^1.2.3",
91-
"@compodoc/ngd-transformer": "^2.1.0",
91+
"@compodoc/ngd-transformer": "^2.1.3",
9292
"chalk": "4.1.2",
9393
"cheerio": "^1.0.0-rc.12",
9494
"chokidar": "^3.5.3",
9595
"colors": "1.4.0",
96-
"commander": "^9.5.0",
97-
"cosmiconfig": "^8.0.0",
96+
"commander": "^10.0.1",
97+
"cosmiconfig": "^8.1.3",
9898
"decache": "^4.6.1",
9999
"fancy-log": "^2.0.0",
100-
"findit2": "^2.2.3",
101-
"fs-extra": "^11.1.0",
102-
"glob": "^8.0.3",
100+
"fast-glob": "^3.2.12",
101+
"fs-extra": "^11.1.1",
102+
"glob": "^10.2.4",
103103
"handlebars": "^4.7.7",
104104
"html-entities": "^2.3.3",
105-
"i18next": "^22.4.9",
105+
"i18next": "^22.4.15",
106106
"inside": "^1.0.0",
107107
"json5": "^2.2.3",
108108
"lodash": "^4.17.21",
109109
"loglevel": "^1.8.1",
110110
"loglevel-plugin-prefix": "^0.8.4",
111111
"lunr": "^2.3.9",
112-
"marked": "^4.2.5",
113-
"minimist": "^1.2.7",
112+
"marked": "^5.0.2",
113+
"minimist": "^1.2.8",
114114
"opencollective-postinstall": "^2.0.3",
115115
"os-name": "4.0.1",
116116
"pdfjs-dist": "2.12.313",
117117
"pdfmake": "^0.2.7",
118-
"semver": "^7.3.8",
118+
"semver": "^7.5.1",
119119
"traverse": "^0.6.7",
120-
"ts-morph": "^17.0.1",
120+
"ts-morph": "^18.0.0",
121121
"uuid": "^9.0.0"
122122
},
123123
"devDependencies": {
124124
"@istanbuljs/nyc-config-typescript": "1.0.2",
125-
"@rollup/plugin-typescript": "11.0.0",
126-
"@types/chai": "4.3.4",
125+
"@rollup/plugin-typescript": "11.1.1",
126+
"@types/chai": "4.3.5",
127127
"@types/fs-extra": "11.0.1",
128-
"@types/lodash": "4.14.191",
129-
"@types/marked": "4.0.8",
128+
"@types/lodash": "4.14.194",
129+
"@types/marked": "5.0.0",
130130
"@types/mocha": "10.0.1",
131-
"@types/node": "18.11.18",
132-
"@types/semver": "7.3.13",
131+
"@types/node": "20.1.5",
132+
"@types/semver": "7.5.0",
133133
"@types/traverse": "0.6.32",
134-
"@typescript-eslint/eslint-plugin": "5.48.1",
135-
"@typescript-eslint/parser": "5.48.1",
136-
"@wdio/cli": "8.1.3",
137-
"@wdio/local-runner": "8.1.3",
138-
"@wdio/mocha-framework": "8.1.2",
139-
"@wdio/sauce-service": "8.1.3",
140-
"@wdio/spec-reporter": "8.1.2",
134+
"@typescript-eslint/eslint-plugin": "5.59.7",
135+
"@typescript-eslint/parser": "5.59.7",
136+
"@wdio/cli": "8.10.5",
137+
"@wdio/local-runner": "8.10.5",
138+
"@wdio/mocha-framework": "8.10.4",
139+
"@wdio/sauce-service": "8.10.5",
140+
"@wdio/spec-reporter": "8.10.5",
141141
"@wdio/sync": "7.27.0",
142142
"auto-changelog": "2.4.0",
143143
"chai": "4.3.7",
144-
"chromedriver": "109.0.0",
144+
"chromedriver": "113.0.0",
145145
"codecov": "3.8.3",
146146
"cross-env": "7.0.3",
147-
"eslint": "8.31.0",
147+
"eslint": "8.41.0",
148148
"husky": "8.0.3",
149-
"lcov-result-merger": "4.0.0",
150-
"madge": "5.0.1",
149+
"lcov-result-merger": "4.1.0",
150+
"madge": "6.0.0",
151151
"mocha": "10.2.0",
152-
"nodemon": "2.0.20",
152+
"nodemon": "2.0.22",
153153
"npm-watch": "0.11.0",
154154
"nyc": "15.1.0",
155-
"prettier": "2.8.2",
155+
"prettier": "2.8.8",
156156
"pretty-quick": "3.1.3",
157-
"rimraf": "4.0.4",
158-
"rollup": "3.10.0",
157+
"rimraf": "5.0.1",
158+
"rollup": "3.23.0",
159159
"rollup-plugin-typescript2": "0.34.1",
160-
"sinon": "15.0.1",
160+
"sinon": "15.1.0",
161161
"sonar-scanner": "3.1.0",
162162
"source-map-support": "0.5.21",
163163
"supertest": "6.3.3",
164164
"ts-node": "10.9.1",
165-
"tslib": "2.4.1",
166-
"wdio-chromedriver-service": "8.0.1"
165+
"tslib": "2.5.2",
166+
"wdio-chromedriver-service": "8.1.1"
167167
},
168168
"collective": {
169169
"type": "opencollective",
@@ -175,5 +175,8 @@
175175
"pre-commit": "pretty-quick --staged --pattern \"**/*.ts\""
176176
}
177177
},
178-
"schematics": "./dist/collection.json"
178+
"schematics": "./dist/collection.json",
179+
"ng-add": {
180+
"save": "devDependencies"
181+
}
179182
}

src-refactored/core/use-cases/scan-files.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ describe('Use-cases - Should scan folders', () => {
66
it('should find files', async () => {
77
const testFolderpath = 'test/fixtures/todomvc-ng2';
88
const files = await ScanFiles.scan(testFolderpath);
9-
expect(files.length).equal(69);
9+
expect(files.length).equal(73);
1010
});
1111
});

src-refactored/core/use-cases/scan-files.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as path from 'path';
2+
import * as fg from 'fast-glob';
23

3-
const DEFAULT_EXCLUDED_DIRECTORIES = ['.git', 'node_modules'];
4+
export const EXCLUDE_PATTERNS = ['**/.git', '**/node_modules', '**/*.d.ts', '**/*.spec.ts'];
45

56
/**
67
* Handle scan source code
@@ -20,27 +21,25 @@ export class ScanFile {
2021
}
2122

2223
public async scan(folder: string): Promise<string[]> {
23-
return new Promise<string[]>((resolve, reject) => {
24-
const finder = require('findit2')(path.resolve(folder));
24+
const pattern = `${path.resolve(folder)}/**/*.{ts,tsx}`;
2525

26-
finder.on('directory', function(dir, stat, stop) {
27-
let base = path.basename(dir);
28-
if (DEFAULT_EXCLUDED_DIRECTORIES.includes(base)) {
29-
stop();
30-
}
26+
return new Promise<string[]>((resolve, reject) => {
27+
const stream = fg.stream(pattern, {
28+
ignore: EXCLUDE_PATTERNS,
29+
absolute: true
3130
});
3231

33-
finder.on('error', error => {
32+
stream.on('error', error => {
3433
reject(error);
3534
});
3635

37-
finder.on('file', (file, stat) => {
38-
if (path.extname(file) === '.ts') {
36+
stream.on('data', file => {
37+
if (path.extname(file) === '.ts' || path.extname(file) === '.tsx') {
3938
this.scannedFiles.push(file);
4039
}
4140
});
4241

43-
finder.on('end', () => {
42+
stream.on('end', () => {
4443
resolve(this.scannedFiles);
4544
});
4645
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy