Skip to content

Commit cdd749d

Browse files
committed
Merge branch 'feature/ng17'
2 parents 9b31ba5 + e0f3c02 commit cdd749d

File tree

146 files changed

+13200
-9126
lines changed

Some content is hidden

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

146 files changed

+13200
-9126
lines changed

.github/workflows/ci-test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI tests
2+
run-name: Running automated tests
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
jobs:
9+
Running-automated-tests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
13+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
14+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
15+
16+
- name: Checking out repository code...
17+
uses: actions/checkout@v4
18+
19+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
20+
21+
- name: Installing dependencies...
22+
run: |
23+
npm config set progress=false &&\
24+
npm install --force
25+
26+
- name: Running tests...
27+
run: npm run ci:test
28+
29+
# Could also use dedicated codecov action: https://github.com/codecov/codecov-action
30+
- name: Reporting coverage to codecov...
31+
run: npm run ci:reportCoverage
32+
env:
33+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
34+
35+
- run: echo "🍏 This job's status is ${{ job.status }}."

.gitignore

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,49 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
1211
/package-lock.json
13-
14-
#code-coverage
15-
/coverage
12+
npm-debug.log
13+
yarn-error.log
1614

1715
# cache
1816
.angular
17+
.sass-cache
1918

2019
# profiling files
2120
chrome-profiler-events*.json
2221
speed-measure-plugin*.json
2322

2423
# IDEs and editors
25-
/.idea
24+
.idea/
2625
.project
2726
.classpath
2827
.c9/
2928
*.launch
3029
.settings/
3130
*.sublime-workspace
3231

33-
# IDE - VSCode
32+
# Visual Studio Code
3433
.vscode/*
3534
!.vscode/settings.json
3635
!.vscode/tasks.json
3736
!.vscode/launch.json
3837
!.vscode/extensions.json
3938
.history/*
4039

41-
# misc
42-
/.sass-cache
40+
# Miscellaneous
4341
/connect.lock
4442
/coverage
4543
/libpeerconnection.log
46-
npm-debug.log
47-
yarn-error.log
4844
testem.log
4945
/typings
5046

51-
# System Files
47+
# System files
5248
.DS_Store
5349
Thumbs.db

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44

55
## [Unreleased]
66

7+
## [3.0.0] - 2024-08-21
8+
### Added
9+
- Feat: Switch to standalone components architecture
10+
- Feat: Addded simpler signatures to use the library, including just passing in the component class
11+
- Feat: Added the ability to pass use a HTML element as the content input
12+
- Feat: Added element hooks (components can now be loaded into HTML elements instead of just replacing text)
13+
- Feat: Introduced Standalone mode. Load components into arbitrary HTML without an Angular app.
14+
- Feat: Made PlatformService work during SSR by default
15+
- Feat: Added DynamicSingleComponent for loading just one component dynamically
16+
- Feat: Cleaned up and added 100+ new tests
17+
- Many more minor improvements and modernizations all around the library
18+
19+
### Changed
20+
- Refactor: Combined provideDynamicHooks and provideDynamicHooksForChild
21+
- Refactor: Registering global settings (via provideDynamicHooks) is now optional
22+
- Refactor: Moved CI flow to Github Actions
23+
24+
### Misc
25+
- New website: https://angular-dynamic-hooks.com/
26+
27+
28+
## [2.1.2] - 2024-08-21
29+
### Added
30+
- Fix: Content slot elements should no longer appear as component children after rendering is done
31+
732
## [2.1.1] - 2024-04-16
833
### Added
934
- Fix: Resolved errors caused by lazily-loaded dynamic components when using SSR
@@ -101,7 +126,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
101126
### Added
102127
- This was the initial release, so everything was added here, really.
103128

104-
[Unreleased]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v2.1.1...HEAD
129+
[Unreleased]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v3.0.0...HEAD
130+
[3.0.0]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v2.1.2...v3.0.0
131+
[2.1.2]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v2.1.1...v2.1.2
105132
[2.1.1]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v2.1.0...v2.1.1
106133
[2.1.0]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v2.0.6...v2.1.0
107134
[2.0.6]: https://github.com/MTobisch/ngx-dynamic-hooks/compare/v2.0.5...v2.0.6

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Marvin Tobisch
3+
Copyright (c) 2024 Marvin Tobisch
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)