Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
403 commits
Select commit Hold shift + click to select a range
c426a25
docs: add Alexey Zuev to GDE resources (#32440)
alexzuza Sep 2, 2019
be30f25
docs: update default path for xi18n (#32480)
Potapy4 Sep 4, 2019
2ec9144
ci: re-run flaky docs examples e2e tests in `test_docs_examples[_ivy]…
gkalpak Sep 5, 2019
8304343
docs: expand abbreviation in providers guide (#32400)
sugoidesune Aug 29, 2019
e742edc
docs: add akita to the list of data libraries (#32505)
DominikPieper Sep 6, 2019
8838a1b
docs: edit copy and example in hierarchical injectors guide (#32501)
kapunahelewong Aug 23, 2019
aaea387
ci: work around `CIRCLE_COMPARE_URL` not being available wih CircleCI…
gkalpak Sep 7, 2019
9fd63c3
docs(forms): correct parameter names in jsdoc (#32530)
lazarljubenovic Sep 7, 2019
48e4b0e
docs: add NG Rome MMXIX to Events resources (#31500)
Zizzamia Jul 11, 2019
1c71db8
docs: describe your change... (#32552)
9thQuadrant Sep 9, 2019
39302ba
docs: fix typos in the routing and testing documentation (#32329)
TrevorKarjanis Aug 27, 2019
76a8470
docs: fixed typo for toh-pt5.md (#32362)
tk3369 Aug 28, 2019
6e380cf
ci: update i18n CODEOWNERS for @angular/localize package (#32570)
petebacondarwin Sep 10, 2019
38f4dcd
docs: port accessibility app from stackblitz to aio (#32377)
kapunahelewong Aug 27, 2019
2565f67
docs: add mdb angular boilerplate to docs resources (#30448)
idzark May 14, 2019
8659451
test: expand the `verify-codeownership.js` script to also check packa…
gkalpak Sep 10, 2019
0c624b2
ci: check code-ownership on CI (#32577)
gkalpak Sep 10, 2019
1eea575
ci: add missing code-owners (#32577)
gkalpak Sep 10, 2019
1775498
ci: pin docker images by ID for hermeticity (#32602)
gkalpak Sep 11, 2019
bf29bd9
build: remove localize as a CODEOWNERS entry (#32618)
matsko Sep 11, 2019
d8675c7
release: cut the v8.2.6 release
matsko Sep 11, 2019
5a8c560
docs: update CHANGELOG to include default message for 8.2.6
matsko Sep 11, 2019
9488da0
docs: add header to code examples (#32563)
jbogarthyde Sep 9, 2019
38fe473
docs: fix doc links to current version (#32566)
jbogarthyde Sep 9, 2019
1c5b157
fix(language-service): cache module resolution (#32483)
Sep 4, 2019
31f06ee
build: enforce proper compile mode for size-tracking test (#32613)
devversion Sep 11, 2019
08a7c6f
ci: update codeowners to reflect GitHub team members (#32569)
gkalpak Sep 10, 2019
8d322c8
docs: modify lazy-load module instructions for new cli flag (#32588)
jbogarthyde Sep 10, 2019
b523844
build(docs-infra): upgrade cli command docs sources to e21aeeecd (#32…
gkalpak Sep 12, 2019
4014aab
docs: move renderer2 deprecation guide into own file (#32626)
kapunahelewong Sep 11, 2019
581b991
docs: add undecorated classes migration faq (#32478)
kapunahelewong Sep 4, 2019
6cd61ae
ci: add @josephperrott to global approvers in `CODEOWNERS` (#32667)
gkalpak Sep 13, 2019
6600bea
ci: run ts-api-guardian test remotely on CI (#32677)
josephperrott Sep 13, 2019
947c076
fix(compiler-cli): fix typo in diagnostic template info. (#32684)
cRAN-cg Sep 15, 2019
f213c7a
docs: add autoprefixer backward compatability instruction (#32109)
jbogarthyde Aug 12, 2019
0ee2b75
ci: use automatic strategy selection for AngularTemplateCompile and T…
josephperrott Sep 16, 2019
e367aa2
docs: Typo fixes in hierarchical DI guide (#32536)
bampakoa Sep 7, 2019
acebf64
ci: build bazel saucelabs tests remotely (#32719)
josephperrott Sep 17, 2019
ba1ef6b
fix(bazel): ng_package(data) should support non-text files (#32721)
Sep 17, 2019
da5d91b
release: cut the v8.2.7 release
AndrewKushnir Sep 18, 2019
8398f9d
docs: edit copy on first step of getting started (#32751)
kapunahelewong Sep 18, 2019
af99f9e
docs: edit copy on getting started step 1 (#32773)
kapunahelewong Sep 19, 2019
e63390d
docs: correct default for router extra option (#32702)
jbogarthyde Sep 16, 2019
9680f4c
docs: fix typo in upgrade guide (#32807)
Sep 22, 2019
104c786
docs: removed duplicated spaces in upgrade guide (#32813)
Sep 23, 2019
78de621
release: cut the v8.2.8 release
AndrewKushnir Sep 25, 2019
7dbde6f
docs: remove extra parenthesis from inline animations snippet (#32735)
pascalfiv Sep 25, 2019
d5c210a
docs: added link to ngRuAir podcast (#32223)
irustm Aug 20, 2019
e81fc14
fix(docs-infra): correctly run on IE11 (#32871)
gkalpak Sep 26, 2019
e8c34c4
docs: clarify sentence in lifecycle hooks doc (#32860)
jordan-amman Sep 25, 2019
432f7ce
docs: fix sentence phrasing (#32846)
reubsinit Sep 25, 2019
45fee06
docs: correct spelling of HTMLTableCellElement in Template Syntax (#3…
EzyHow Sep 22, 2019
466c754
docs: fix typo in deployment guide (#32777)
jetpack Sep 19, 2019
2397144
docs(router): make `InitialNavigation` part of the public API (#32707)
gkalpak Sep 16, 2019
bdea243
docs: add missing space between "Component" and "will" in guide (#32885)
YuliaTsareva Sep 27, 2019
bb76031
docs: removed duplicate "compilerOptions" property (#32449) (#32911)
serpent5 Sep 2, 2019
0984022
docs: add prompts section to schematic guide (#32728)
jbogarthyde Sep 17, 2019
f6526a0
docs: add filename headers to code examples (#32701)
jbogarthyde Sep 16, 2019
7b8b2d4
docs: update inline lazy loading example to use the import syntax (#3…
arnehoek Sep 26, 2019
0818e2c
docs(service-worker): add info about recovering from degraded Driver …
H--o-l Jul 29, 2019
3a80069
docs: fix typo in creating-libraries (#32930)
geromegrignon Oct 1, 2019
06e7272
docs: clarify http response type (#32817)
jbogarthyde Sep 23, 2019
32f5241
docs: fix capitalization in elements docs (#32917) (#32936)
jcolvin79 Oct 1, 2019
42f7419
docs: emphasize headers for code examples (#32938)
jbogarthyde Oct 1, 2019
b45d2e0
docs: add dynamic queries flag migration documentation (#32582)
kapunahelewong Sep 10, 2019
c6041b9
fix(docs-infra): show hamburger button on getting started guide (#32941)
gkalpak Oct 1, 2019
a2fc577
docs: added '>' to ng-template closing tag. (#32939)
jordan-amman Oct 1, 2019
57457fb
fix(upgrade): fix AngularJsUrlCodec to support Safari (#32959)
Oct 2, 2019
68fed2f
docs(router): fix typo for "urlUpdateStrategy" (#32960)
NiklasMerz Oct 2, 2019
d96167f
docs: add lib build note (#32940)
jbogarthyde Oct 1, 2019
11d3b19
release: cut the v8.2.9 release
atscott Oct 2, 2019
56ac18e
docs: fix stackblitz example polyfills (#32969)
StephenFluin Oct 2, 2019
d0abf1b
refactor(bazel): ng_module action description should include compile …
devversion Oct 2, 2019
d533d15
docs: add ngOnInit description (#32789)
Potapy4 Sep 20, 2019
7e6644a
docs(docs-infra): use recommended type assertion (#31042)
kroeder Jun 14, 2019
88ad505
docs: add comment about newEvent utility function (#32001)
Aug 5, 2019
288e0ef
Revert "docs: add dynamic queries flag migration documentation (#3258…
kapunahelewong Oct 2, 2019
06072e0
Revert "docs: add undecorated classes migration faq (#32478)" (#32972)
kapunahelewong Oct 2, 2019
cd1b0c1
Revert "docs: move renderer2 deprecation guide into own file (#32626)…
kapunahelewong Oct 2, 2019
9ba898d
docs: remove Renderer2 section (#32972)
kapunahelewong Oct 2, 2019
8237e95
docs: fix typo in attribute-directives.md (#32943)
Showtim3 Oct 1, 2019
e24393c
test(upgrade): add unit tests for AngularJSUrlCodec's parse method (#…
Oct 3, 2019
eb0461d
fix(docs-infra): ignore `ng*Def` members in API docs (#31378)
gkalpak Jul 1, 2019
2742649
docs(core): mark `EventEmitter#__isAsync` as internal to hide from AP…
gkalpak Oct 3, 2019
dd2587d
build: create script for setting up RBE in local dev environment (#31…
josephperrott Jun 21, 2019
686b621
ci: use CircleCI executors (#32745) (#32982)
filipesilva Sep 18, 2019
e0c1063
ci: keep cache key fallback in a var (#32745) (#32982)
filipesilva Sep 18, 2019
16b83e8
ci: use CircleCI commands (#32745) (#32982)
filipesilva Sep 18, 2019
30253a7
ci: use CircleCI parameterized jobs (#32745) (#32982)
filipesilva Sep 18, 2019
4263d9e
ci: refactor notification commands into a single parametrized one (#3…
filipesilva Sep 26, 2019
9dc4815
ci: shorten the display name of `init_environment` steps that are sho…
gkalpak Oct 4, 2019
006af0b
docs(forms): expand e-mail validation description (#32961)
gkalpak Oct 2, 2019
a3482f7
refactor(forms): refactor `Validators.email()` regexp for easier comp…
gkalpak Oct 2, 2019
a1d9848
build(docs-infra): update in-memory-we-api and karma-jasmine-html-rep…
santoshyadavdev Oct 6, 2019
c3ff66c
docs: add missing parenthesis (#31041)
atefBB Jun 14, 2019
8ef0ae3
docs: add dotnettricks to training (#32771)
santoshyadavdev Sep 19, 2019
3541e59
docs: fix accessibility lint rules (#32661)
edbzn Sep 13, 2019
2952ea5
docs: correct sentence in AoT compiler guide (#33020)
dannyskoog Oct 6, 2019
362b3e4
release: cut the v8.2.10 release
alxhub Oct 9, 2019
882a9e3
docs: fixed a misleading sentence (#32211)
jrumandal Aug 20, 2019
c1b7f03
docs: changed 'function' word in to 'steps' (#32211)
jrumandal Aug 20, 2019
36fd063
docs: fix typo in guide (#32893)
YuliaTsareva Sep 28, 2019
5f78456
docs(common): Fixes typo (#33003)
neox5 Oct 4, 2019
4c7e7fb
docs(router): Update description and example for Resolve interface (#…
fmalcher Jul 23, 2019
970df9e
docs: add note to build Angular locally (#31053)
renntbenrennt Jun 14, 2019
2429819
docs: add command for creating angular workspace (#32804)
EzyHow Sep 22, 2019
9e76a38
build: using the xlarge resource class for zonejs tests on CI (#33148)
josephperrott Oct 14, 2019
7e511e7
docs: fix typo in guide (#33155)
YuliaTsareva Oct 14, 2019
a7d5d33
docs: clarify http header api doc (#33038)
jbogarthyde Oct 8, 2019
73e667f
docs: a typo fixed in the upgrade guide (#33054)
gbezyuk Oct 9, 2019
2fa788c
docs: clarify static router-outlet name attribute (#32973)
jbogarthyde Oct 2, 2019
9409dce
docs: correct matcher description (#32970)
jbogarthyde Oct 2, 2019
5f52e63
docs: use neutral domain name in i18n example (#33146)
sod Oct 14, 2019
7a0cc53
refactor(service-worker): make signatures of caching methods compatib…
apocalyp0sys Oct 14, 2019
a2716ac
fix(service-worker): continue serving api requests on cache failure (…
apocalyp0sys Oct 14, 2019
2daa838
docs: Update link (#33166)
EzyHow Oct 15, 2019
b71ccc2
docs: fix JDK url (#33168)
MrJithil Oct 15, 2019
8bc2f06
release: cut the v8.2.11 release
mhevery Oct 15, 2019
ef0b8f4
docs: fix typo in getting started guide (#33185)
bargemb Oct 15, 2019
37cbcfa
fix(upgrade): remove unused version export (#33180)
evmar Oct 4, 2019
1281bef
docs: fix code-example displayed path (#33228)
paulceli Oct 17, 2019
05a1ceb
style: enforce disallowance of String, Number and Boolean constructor…
dannyskoog Oct 16, 2019
fab6ea0
docs: correct vscode clang-format setup instructions (#33190)
dannyskoog Oct 15, 2019
f13e40d
docs: change "patchMatch" to "pathMatch" (#32935)
sahansera Oct 1, 2019
3d60f2c
docs: clarify instructions on where to create the proxy.conf.json fil…
ahasall Oct 17, 2019
19ada81
build: fix tslint issue with String instantiation
matsko Oct 18, 2019
d9581bd
ci: fix dev-infra incorrectly matching all ".bzl" files as codeowner …
devversion Oct 18, 2019
958aba9
docs: edit and organize language service doc (#33202)
jbogarthyde Oct 16, 2019
88869a2
docs: update deployers table with ngx-deploy-npm (#33269)
dianjuar Oct 19, 2019
2b02e87
docs(forms): fix grammar and add clarification to setValue docs (#33126)
Coly010 Oct 12, 2019
3f3e1bf
docs: clarify steps in Hosting on Firebase (#33089)
DavSanchez Oct 10, 2019
fc14728
docs: clarrify use of sw behind redirect (#32915)
TinyMan Sep 28, 2019
bb28406
build: update bazel remote build config and documentation (#33304)
josephperrott Oct 21, 2019
57c3a23
fix(docs-infra): scroll to top when navigating to new page via addres…
gkalpak Oct 23, 2019
ef5c0da
build: fix gulp setup not working with node v12 (#33348)
devversion Oct 23, 2019
7478d0c
test(docs-infra): disable es5 size tracking in aio tests (#33356)
gkalpak Oct 23, 2019
98e71d3
build(docs-infra): upgrade cli command docs sources to 5bf754195 (#33…
gkalpak Oct 23, 2019
704e354
docs: Fix appHighlightColor typo (#33331)
kyliau Oct 22, 2019
70238f7
docs: fix spelling error in angular component (#32971)
ODAVING Oct 2, 2019
2d465ee
feat(docs-infra): implement figure styles (#33259)
sjtrimble Oct 18, 2019
663aba5
release: cut the v8.2.12 release
AndrewKushnir Oct 23, 2019
82df950
docs: add example of a server in golang for deployment (#33092)
AndrusGerman Oct 24, 2019
e0428fe
docs: fix typo in getting started guide (#33372)
geoffbass Oct 24, 2019
26a6db2
docs(docs-infra): document running docs examples in ivy mode (#33399)
gkalpak Oct 25, 2019
ac4353c
docs: added missing whitespaces (#33424)
thanhpd Oct 26, 2019
f97c464
fix(compiler): i18n - ignore `alt-trans` tags in XLIFF 1.2 (#33464)
petebacondarwin Oct 28, 2019
a08b181
docs: fixed cli ng update reference link (#33320)
jrumandal Oct 22, 2019
1fc7786
build: remove --nowatchfs flag as --watchfs is a noop on windows now …
josephperrott Oct 29, 2019
38e9959
docs: remove redundant whitespaces and fix minor typos (#33483)
thanhpd Oct 30, 2019
8bce694
release: cut the v8.2.13 release
AndrewKushnir Oct 30, 2019
2174827
build: ensure that version stamping is applied when the npm_package p…
josephperrott Oct 31, 2019
b43ae44
fix(bazel): exclude @angular/cli from metadata build
alan-agius4 Oct 31, 2019
2840670
fix(service-worker): ensure initialization before handling messages (…
Splaktar Sep 7, 2019
2c74996
docs: reorganize get-started to emphasize ready-made app
jbogarthyde Nov 11, 2019
03b3a38
build: set up all packages to publish via wombot proxy
josephperrott Nov 13, 2019
bbeac07
release: cut the v8.2.14 release
kara Nov 13, 2019
d730216
feat: initial implementation (#1)
ikatyang Oct 24, 2018
647e665
chore(release): 1.0.0
ikatyang Oct 24, 2018
02dafce
feat: support bogus comments (#5)
ikatyang Nov 27, 2018
719b628
feat: add an option to allow `htm` component closing tags (#6)
ikatyang Nov 27, 2018
326a03c
chore(release): 1.1.0
ikatyang Nov 27, 2018
c0fd804
feat: add an option to specify case-sensitivity for tag names (#7)
ikatyang Dec 7, 2018
2eeb31f
chore(release): 1.2.0
ikatyang Dec 7, 2018
7a0c705
feat: support full named entities (#9)
ikatyang Nov 2, 2019
562740c
chore(release): 1.3.0
ikatyang Nov 2, 2019
37f0bad
docs(changelog): fix PR links
ikatyang Nov 2, 2019
b63f8a1
fix: do not wrap `<tr>` into pseudo `<tbody>`
ikatyang Jan 28, 2020
de94060
chore(release): 1.4.0
ikatyang Jan 28, 2020
b327e1a
feat: add an option to customize tag content type (#12)
ikatyang Apr 21, 2020
8dde5ae
chore(release): 1.5.0
ikatyang Apr 21, 2020
aae23df
feat(getTagContentType): add `prefix` and `hasParent` parameters (#13)
ikatyang May 3, 2020
9bee4f7
chore(release): 1.6.0
ikatyang May 3, 2020
6443800
feat(getTagContentType): add `attrs` parameter (#17)
ikatyang May 9, 2020
9073403
chore(release): 1.7.0
ikatyang May 9, 2020
f7e8c18
fix: add missing endSourceSpan for element with void element as its l…
ikatyang Jun 26, 2020
3b4e5c9
chore(release): 1.7.1
ikatyang Jun 26, 2020
5823440
feat: add `type` field to nodes and use enumerable node type (#21)
thorn0 Apr 5, 2021
262ebc3
chore(release): 1.8.0
ikatyang Apr 5, 2021
b5dc902
Merge branch 'main' into dev
thorn0 Oct 1, 2022
910ea3d
feat!: switch to ESM
thorn0 Oct 2, 2022
1fec1c6
chore(release): 2.0.0
thorn0 Oct 2, 2022
44ddda2
chore: reduce diff between `dev` and `main` branch (#25)
fisker Oct 10, 2022
aacfa00
feat: expose utils and classes (#26)
fisker Oct 18, 2022
922d106
docs: update README.md
fisker Oct 18, 2022
f55cf46
chore(release): 2.1.0
fisker Oct 18, 2022
aa45f8a
Merge branch 'angular:main' into dev
fisker Nov 20, 2022
982f411
feat: update tslib (#27)
fisker Nov 20, 2022
d200b4b
chore(release): 3.0.0
fisker Nov 20, 2022
305698c
Merge branch 'main' into dev
fisker Jan 5, 2023
1d756ea
Update dependencies
fisker Jan 5, 2023
6191b2e
chore(release): 4.0.0
fisker Jan 5, 2023
a87f63c
chore: clean up CHANGELOG for v3.0.0 & v4.0.0 (#28)
fisker Jan 10, 2023
052da44
Merge branch 'angular:main' into dev
fisker Jan 30, 2023
9eba6e4
chore: don't pin `tslib`
fisker Jan 30, 2023
9898d5e
Merge upstream (#30)
sosukesuzuki Oct 28, 2023
dbc00e1
Add `tokenizeBlocks` option and `type` property to block nodes (#32)
sosukesuzuki Oct 28, 2023
ea9657f
Update README and rename `tokenizeBlocks` to `tokenizeAngularBlocks` …
sosukesuzuki Oct 28, 2023
e13bcf2
chore(release): 5.0.0 (#34)
sosukesuzuki Oct 29, 2023
a209e3f
chore(release): 5.0.0 (#34)
sosukesuzuki Oct 29, 2023
cd30b89
Add `startSourceSpan` and `endSourceSpan` to `BlockParameter` (#35)
sosukesuzuki Oct 29, 2023
c954d1d
chore(release): 5.0.1
Oct 29, 2023
e7cb780
Merge branch 'main' into dev
fisker Oct 29, 2023
2c79c32
Fix bad merge & fix build script
fisker Oct 29, 2023
7a05069
Update dependencies
fisker Oct 29, 2023
a9fc3ab
chore(release): 5.0.2
fisker Oct 29, 2023
e44e2c6
Reduce diff between dev and main branch (#36)
fisker Oct 29, 2023
9fade4f
feat: parse ICU expressions if also parsing block syntax (#38)
mattlewis92 Dec 10, 2023
6b1d34c
chore(release): 5.1.0
Dec 10, 2023
8ffd2f5
Add `type` field for `ExpansionCase` (#39)
sosukesuzuki Dec 10, 2023
ef17eaa
chore(release): 5.2.0
Dec 10, 2023
0311659
Merge branch 'main' into dev-202407-merge-upstream
fisker Jul 11, 2024
3d4456f
Fix bad merge
fisker Jul 11, 2024
b679c28
Reduce diff
fisker Jul 11, 2024
ef72cee
chore(release): 6.0.0
fisker Jul 11, 2024
654e52b
Clean CHANGELOG.md
fisker Jul 11, 2024
1acefaa
Add `type` field to `LetDeclaration` node
sosukesuzuki Jul 11, 2024
76a3dca
Add new option `tokenizeAngularLetDeclaration`
sosukesuzuki Jul 11, 2024
1720e1e
Add `startSourceSpan` and `endSourceSpan` fields to `LetDeclaration` …
sosukesuzuki Jul 11, 2024
769980b
Merge pull request #41 from prettier/add-option-for-let
sosukesuzuki Jul 11, 2024
4f5267c
chore(release): 6.0.1
fisker Jul 11, 2024
20aeeb8
Update changelog
fisker Jul 11, 2024
5db627e
chore(release): 6.0.2
fisker Jul 11, 2024
a96a3ca
Merge branch 'main' into dev
fisker Sep 29, 2024
0a75009
chore: update dependencies
fisker Sep 29, 2024
e65b9f6
chore: use yarn berry
fisker Sep 29, 2024
beb54e3
chore(release): 7.0.0
fisker Sep 29, 2024
eceda60
chore: fix changelog
fisker Sep 29, 2024
76db344
Merge branch 'angular:main' into dev
fisker Oct 8, 2024
d9d282a
chore: update dependencies
fisker Oct 8, 2024
b047449
feat: add `exports` to package.json
fisker Oct 8, 2024
59b559b
chore: release v7.0.1
fisker Oct 8, 2024
844124a
Update SECURITY.md
fisker Oct 12, 2024
d4aaf79
chore(release): 7.0.2
fisker Nov 25, 2024
97e54b5
Merge branch 'angular:main' into dev
fisker Nov 25, 2024
331de38
Merge branch 'dev' of github.com:prettier/angular-html-parser into dev
fisker Nov 25, 2024
fc0a0cb
Update dependencies
fisker Nov 25, 2024
d7d7520
chore(release): 8.0.0
fisker Nov 25, 2024
946afff
Clean changelog
fisker Nov 25, 2024
3609bd9
Add jscodeshift back
fisker Nov 25, 2024
0744d4a
chore(release): 8.0.1
fisker Nov 25, 2024
dc2799e
Merge branch 'angular:main' into dev
fisker Jan 3, 2025
857539a
Merge branch 'angular:main' into dev
fisker Mar 12, 2025
a59855c
chore: update dependencies
fisker Mar 12, 2025
ae99b02
chore: format files
fisker Mar 12, 2025
c36fdd5
test: fix tests
fisker Mar 12, 2025
f26f7b3
test: fix compiler test
fisker Mar 12, 2025
82b9aa2
chore: add comments
fisker Mar 12, 2025
e9979b1
chore: update yarn to v4.7
fisker Mar 12, 2025
4dc3dab
chore: move original `.github/` directory away
fisker Mar 12, 2025
71ca51a
ci: setup
fisker Mar 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
# JS and TS files must always use LF for tools to work
*.js eol=lf
*.ts eol=lf

# angular-html-parser
packages/angular-html-parser/**/* eol.lf
42 changes: 42 additions & 0 deletions .github/workflows/augular-html-parser-continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
strategy:
fail-fast: false
matrix:
node:
- "22"
- "20"
- "18"
- "16"
- "14"
name: Test
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}

- run: |
yarn --immutable
yarn test
yarn build
yarn lint
working-directory: packages/angular-html-parser

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ baseline.json

# Ignore cache created with the Angular CLI.
.angular/

# angular-html-parser
packages/angular-html-parser/coverage
7 changes: 5 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Angular is part of Google [Open Source Software Vulnerability Reward Program](https://bughunters.google.com/about/rules/6521337925468160/google-open-source-software-vulnerability-reward-program-rules). For vulnerabilities in Angular, please submit your report [here](https://bughunters.google.com/report).
<!-- angular-html-parser: DO NOT CHANGE @fisker -->
## Security contact information

For more information, check out [Angular's security policy](https://angular.dev/best-practices/security).
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.
8 changes: 8 additions & 0 deletions packages/angular-html-parser/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
lib/
node_modules/
**/.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
**/.pnp.*
3 changes: 3 additions & 0 deletions packages/angular-html-parser/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.yarn/
lib/
coverage/
6 changes: 6 additions & 0 deletions packages/angular-html-parser/.versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "angular",
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
}
935 changes: 935 additions & 0 deletions packages/angular-html-parser/.yarn/releases/yarn-4.7.0.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions packages/angular-html-parser/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
compressionLevel: mixed

defaultSemverRangePrefix: ""

enableGlobalCache: true

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.7.0.cjs
249 changes: 249 additions & 0 deletions packages/angular-html-parser/CHANGELOG.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions packages/angular-html-parser/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Ika <ikatyang@gmail.com> (https://github.com/ikatyang)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
107 changes: 107 additions & 0 deletions packages/angular-html-parser/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# angular-html-parser

[![npm](https://img.shields.io/npm/v/angular-html-parser.svg)](https://www.npmjs.com/package/angular-html-parser)

An HTML parser extracted from Angular with some [modifications](#modifications)

[Changelog](https://github.com/prettier/angular-html-parser/blob/master/packages/angular-html-parser/CHANGELOG.md)

## Install

```sh
# using npm
npm install --save angular-html-parser

# using yarn
yarn add angular-html-parser
```

## Usage

```js
import { parse } from "angular-html-parser";

const { rootNodes, errors } = parse(`
<!DOCTYPE html>
<html>
<head>
<title>Hello world!</title>
</head>
<body>
<div>Hello world!</div>
</body>
</html>
`);
```

## API

```ts
declare function parse(input: string, options?: Options): ng.ParseTreeResult;

interface Options {
/**
* any element can self close
*
* defaults to false
*/
canSelfClose?: boolean;
/**
* support [`htm`](https://github.com/developit/htm) component closing tags (`<//>`)
*
* defaults to false
*/
allowHtmComponentClosingTags?: boolean;
/**
* do not lowercase tag names before querying their tag definitions
*
* defaults to false
*/
isTagNameCaseSensitive?: boolean;
/**
* customize tag content type
*
* defaults to the content type defined in the HTML spec
*/
getTagContentType?: (
tagName: string,
prefix: string,
hasParent: boolean,
attrs: Array<{ prefix: string; name: string; value?: string | undefined }>,
) => void | ng.TagContentType;
/**
* tokenize angular control flow block syntax
*/
tokenizeAngularBlocks?: boolean;
/**
* tokenize angular let declaration syntax
*/
tokenizeAngularLetDeclaration?: boolean;
}
```

## Modifications

- add `CDATA` node
- add `DocType` node
- add `nameSpan` field to `Element` and `Attribute`
- allow case-insensitive closing tags for non-foreign elements
- fix `Comment#sourceSpan`
- support [bogus comments](https://www.w3.org/TR/html5/syntax.html#bogus-comment-state) (`<!...>`, `<?...>`)
- ~~support full [named entities](https://html.spec.whatwg.org/multipage/entities.json)~~ (fixed upstream)
- add `type` property to nodes
- value span for attributes includes quotes

## Development

```sh
# build
yarn run build

# test
yarn run test
```

## License

MIT © [Ika](https://github.com/ikatyang)
29 changes: 29 additions & 0 deletions packages/angular-html-parser/ThirdPartyNoticeText.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
This project incorporates third party material from the projects listed below.
The original copyright notice and the license under which we received such third
party material are set forth below.

================================================================================

Angular (https://github.com/angular/angular)

The MIT License

Copyright (c) 2014-2018 Google, Inc. http://angular.io

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
57 changes: 57 additions & 0 deletions packages/angular-html-parser/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "angular-html-parser",
"version": "8.0.1",
"description": "A HTML parser extracted from Angular with some modifications",
"repository": "https://github.com/prettier/angular-html-parser",
"homepage": "https://github.com/prettier/angular-html-parser/blob/master/packages/angular-html-parser#readme",
"author": {
"name": "Ika",
"email": "ikatyang@gmail.com",
"url": "https://github.com/ikatyang"
},
"exports": {
".": {
"types": "./lib/angular-html-parser/src/index.d.ts",
"default": "./lib/angular-html-parser/src/index.js"
},
"./*": "./*"
},
"license": "MIT",
"scripts": {
"prepublish": "yarn run build",
"build": "yarn clean && yarn build-lib && yarn codemod",
"clean": "del-cli ./lib",
"build-lib": "tsc -p tsconfig.build.json",
"codemod": "node ./node_modules/jscodeshift/bin/jscodeshift.js -t postbuild-codemod.ts lib --extensions=js,ts --parser=ts",
"test": "vitest",
"release": "standard-version",
"fix": "prettier . --write",
"lint": "prettier . --check"
},
"devDependencies": {
"@types/node": "22.13.10",
"@vitest/coverage-v8": "3.0.8",
"del-cli": "6.0.0",
"jasmine": "5.6.0",
"jscodeshift": "17.1.2",
"prettier": "3.5.3",
"standard-version": "9.5.0",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.8.2",
"vitest": "3.0.8"
},
"engines": {
"node": ">= 14"
},
"files": [
"lib",
"ThirdPartyNoticeText.txt"
],
"type": "module",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"packageManager": "yarn@4.7.0"
}
28 changes: 28 additions & 0 deletions packages/angular-html-parser/postbuild-codemod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { API, FileInfo } from "jscodeshift";

export default function transformer(file: FileInfo, api: API) {
const j = api.jscodeshift;

const ast = j(file.source);

ast.find(j.ImportDeclaration).forEach(({ node }) => {
const source = node.source.value as string;
if (!source.endsWith(".js")) {
node.source.value = source + ".js";
}
});

ast.find(j.TSTypeAliasDeclaration).forEach(({ node }) => {
if (node.id.name === "Node" && node.typeAnnotation.type === "TSUnionType") {
node.typeAnnotation.types = node.typeAnnotation.types.filter(
(type) =>
type.type === "TSTypeReference" &&
type.typeName.type === "Identifier" &&
type.typeName.name !== "Expansion" &&
type.typeName.name !== "ExpansionCase",
);
}
});

return ast.toSource();
}
1 change: 1 addition & 0 deletions packages/angular-html-parser/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
Loading