Skip to content

Commit

Permalink
Merge branch 'release/1.1.20'
Browse files Browse the repository at this point in the history
  • Loading branch information
vogloblinsky committed May 23, 2023
2 parents e1db6e6 + 97c8db0 commit df906a5
Show file tree
Hide file tree
Showing 87 changed files with 4,944 additions and 4,014 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
<a name="1.1.20"></a>

## [1.1.20](https://github.com/compodoc/compodoc/compare/1.1.19...1.1.20) - 2023-05-23

### Merged

- fix(Input): Add support for Object Expressions in Input decorators [#1326](https://github.com/compodoc/compodoc/pull/1326), Thanks [valentinpalkovic](https://github.com/valentinpalkovic)
- fix(app): overview depth [#1310](https://github.com/compodoc/compodoc/pull/1310), Thanks [albeniraouf](https://github.com/albeniraouf)
- Translates to Bulgarian [#1312](https://github.com/compodoc/compodoc/pull/1312), Thanks [3phase](https://github.com/3phase)

### Bug fixes

- 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)
- feat(app): Required Inputs ([e1a5396](https://github.com/compodoc/compodoc/commit/e1a5396)), closes [#1340](https://github.com/compodoc/compodoc/issues/1340)
- 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)
- fix(app): support exportAs for directives ([76a8f34](https://github.com/compodoc/compodoc/commit/76a8f34)), closes [#1328](https://github.com/compodoc/compodoc/issues/1328)
- feat(app): bump @compodoc/ngd-transformer ([ef9bd94](https://github.com/compodoc/compodoc/commit/ef9bd94)), closes [#1311](https://github.com/compodoc/compodoc/issues/1311)
- 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)
- 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)
- 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)
- 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)
- 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)

<a name="1.1.19"></a>

## [1.1.19](https://github.com/compodoc/compodoc/compare/1.1.18...1.1.19) (2022-01-10)
Expand Down
12 changes: 6 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

## Libraries used inside generate static HTML pages

- bootstrap native : 1.1.0
- bootstrap native : 5.0.0
- d3 from d3-flextree : 3.x.x
- deep-iterator : 2.4.0
- es6-shim : 0.35.1
- EventDispatcher
- htmlparser : 2.0.0
- innersvg : 2.x.x
- prism : 1.9.0
- prism : 1.29.0
- promise
- svg-pan-zoom : 3.5.2
- tablesort : 5.0.2
- vis : 4.20.1
- svg-pan-zoom : 3.6.1
- tablesort : 5.4.0
- vis : 4.21.0
- zepto : 1.2.0
- lunr : 2.1.5
- lunr : 2.3.9

## Entry files

Expand Down
7,178 changes: 3,920 additions & 3,258 deletions package-lock.json

Large diffs are not rendered by default.

85 changes: 44 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@compodoc/compodoc",
"version": "1.1.19",
"version": "1.1.20",
"description": "The missing documentation tool for your Angular application",
"main": "dist/index.js",
"bin": {
Expand All @@ -25,7 +25,7 @@
"pretest": "tsc -p test/tsconfig.json && node test/dist/cli-clean-root-folder.js",
"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",
"posttest": "rimraf test/dist",
"test:watch": "npm-watch",
"test:watch": "npm-watch build",
"test:simple-doc": "ts-node ./bin/index-cli.js -p ./test/fixtures/sample-files/tsconfig.simple.json -d doc -s --port 4000 & sleep 20",
"presaucelabs-test-e2e-mocha": "npm run test:simple-doc",
"saucelabs-test-e2e-mocha": "./node_modules/.bin/wdio wdio-saucelabs.conf.js",
Expand Down Expand Up @@ -84,86 +84,86 @@
},
"homepage": "https://github.com/compodoc/compodoc#readme",
"dependencies": {
"@angular-devkit/schematics": "^15.1.1",
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@angular-devkit/schematics": "^16.0.1",
"@babel/core": "^7.21.8",
"@babel/preset-env": "^7.21.5",
"@compodoc/live-server": "^1.2.3",
"@compodoc/ngd-transformer": "^2.1.0",
"@compodoc/ngd-transformer": "^2.1.3",
"chalk": "4.1.2",
"cheerio": "^1.0.0-rc.12",
"chokidar": "^3.5.3",
"colors": "1.4.0",
"commander": "^9.5.0",
"cosmiconfig": "^8.0.0",
"commander": "^10.0.1",
"cosmiconfig": "^8.1.3",
"decache": "^4.6.1",
"fancy-log": "^2.0.0",
"findit2": "^2.2.3",
"fs-extra": "^11.1.0",
"glob": "^8.0.3",
"fast-glob": "^3.2.12",
"fs-extra": "^11.1.1",
"glob": "^10.2.4",
"handlebars": "^4.7.7",
"html-entities": "^2.3.3",
"i18next": "^22.4.9",
"i18next": "^22.4.15",
"inside": "^1.0.0",
"json5": "^2.2.3",
"lodash": "^4.17.21",
"loglevel": "^1.8.1",
"loglevel-plugin-prefix": "^0.8.4",
"lunr": "^2.3.9",
"marked": "^4.2.5",
"minimist": "^1.2.7",
"marked": "^5.0.2",
"minimist": "^1.2.8",
"opencollective-postinstall": "^2.0.3",
"os-name": "4.0.1",
"pdfjs-dist": "2.12.313",
"pdfmake": "^0.2.7",
"semver": "^7.3.8",
"semver": "^7.5.1",
"traverse": "^0.6.7",
"ts-morph": "^17.0.1",
"ts-morph": "^18.0.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@rollup/plugin-typescript": "11.0.0",
"@types/chai": "4.3.4",
"@rollup/plugin-typescript": "11.1.1",
"@types/chai": "4.3.5",
"@types/fs-extra": "11.0.1",
"@types/lodash": "4.14.191",
"@types/marked": "4.0.8",
"@types/lodash": "4.14.194",
"@types/marked": "5.0.0",
"@types/mocha": "10.0.1",
"@types/node": "18.11.18",
"@types/semver": "7.3.13",
"@types/node": "20.1.5",
"@types/semver": "7.5.0",
"@types/traverse": "0.6.32",
"@typescript-eslint/eslint-plugin": "5.48.1",
"@typescript-eslint/parser": "5.48.1",
"@wdio/cli": "8.1.3",
"@wdio/local-runner": "8.1.3",
"@wdio/mocha-framework": "8.1.2",
"@wdio/sauce-service": "8.1.3",
"@wdio/spec-reporter": "8.1.2",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.7",
"@wdio/cli": "8.10.5",
"@wdio/local-runner": "8.10.5",
"@wdio/mocha-framework": "8.10.4",
"@wdio/sauce-service": "8.10.5",
"@wdio/spec-reporter": "8.10.5",
"@wdio/sync": "7.27.0",
"auto-changelog": "2.4.0",
"chai": "4.3.7",
"chromedriver": "109.0.0",
"chromedriver": "113.0.0",
"codecov": "3.8.3",
"cross-env": "7.0.3",
"eslint": "8.31.0",
"eslint": "8.41.0",
"husky": "8.0.3",
"lcov-result-merger": "4.0.0",
"madge": "5.0.1",
"lcov-result-merger": "4.1.0",
"madge": "6.0.0",
"mocha": "10.2.0",
"nodemon": "2.0.20",
"nodemon": "2.0.22",
"npm-watch": "0.11.0",
"nyc": "15.1.0",
"prettier": "2.8.2",
"prettier": "2.8.8",
"pretty-quick": "3.1.3",
"rimraf": "4.0.4",
"rollup": "3.10.0",
"rimraf": "5.0.1",
"rollup": "3.23.0",
"rollup-plugin-typescript2": "0.34.1",
"sinon": "15.0.1",
"sinon": "15.1.0",
"sonar-scanner": "3.1.0",
"source-map-support": "0.5.21",
"supertest": "6.3.3",
"ts-node": "10.9.1",
"tslib": "2.4.1",
"wdio-chromedriver-service": "8.0.1"
"tslib": "2.5.2",
"wdio-chromedriver-service": "8.1.1"
},
"collective": {
"type": "opencollective",
Expand All @@ -175,5 +175,8 @@
"pre-commit": "pretty-quick --staged --pattern \"**/*.ts\""
}
},
"schematics": "./dist/collection.json"
"schematics": "./dist/collection.json",
"ng-add": {
"save": "devDependencies"
}
}
2 changes: 1 addition & 1 deletion src-refactored/core/use-cases/scan-files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ describe('Use-cases - Should scan folders', () => {
it('should find files', async () => {
const testFolderpath = 'test/fixtures/todomvc-ng2';
const files = await ScanFiles.scan(testFolderpath);
expect(files.length).equal(69);
expect(files.length).equal(73);
});
});
23 changes: 11 additions & 12 deletions src-refactored/core/use-cases/scan-files.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as path from 'path';
import * as fg from 'fast-glob';

const DEFAULT_EXCLUDED_DIRECTORIES = ['.git', 'node_modules'];
export const EXCLUDE_PATTERNS = ['**/.git', '**/node_modules', '**/*.d.ts', '**/*.spec.ts'];

/**
* Handle scan source code
Expand All @@ -20,27 +21,25 @@ export class ScanFile {
}

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

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

finder.on('error', error => {
stream.on('error', error => {
reject(error);
});

finder.on('file', (file, stat) => {
if (path.extname(file) === '.ts') {
stream.on('data', file => {
if (path.extname(file) === '.ts' || path.extname(file) === '.tsx') {
this.scannedFiles.push(file);
}
});

finder.on('end', () => {
stream.on('end', () => {
resolve(this.scannedFiles);
});
});
Expand Down
Loading

0 comments on commit df906a5

Please sign in to comment.