Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lazyload): move 'root' provider to provideMatomo #98

Merged
merged 5 commits into from
Jan 3, 2025

Conversation

raphael22
Copy link
Contributor

Just a first try at moving provider from root.
My repro start with this but not sure of what to do about router/form feature.
I moved MatomoInitializerService initialize in its constructor, otherwise I was stuck with no config error, tried to force INTERNAL_CONFIG before but a bit lost there.

@EmmanuelRoux EmmanuelRoux force-pushed the fix/lazyload branch 2 times, most recently from 6359117 to 326ccbe Compare December 23, 2024 14:22
@EmmanuelRoux EmmanuelRoux linked an issue Dec 23, 2024 that may be closed by this pull request
@EmmanuelRoux
Copy link
Owner

EmmanuelRoux commented Dec 23, 2024

Hi @raphael22

I've pushed some new code, could you please confirm that version v6.3.2-test.2 fixes the problem you reported?

@raphael22
Copy link
Contributor Author

@EmmanuelRoux EmmanuelRoux merged commit 45a5a0e into EmmanuelRoux:main Jan 3, 2025
3 checks passed
EmmanuelRoux added a commit that referenced this pull request Jan 3, 2025
# [6.4.0](v6.3.1...v6.4.0) (2025-01-03)

### Bug Fixes

* correctly resolve deferred configuration when using `manual` initialization mode ([da82506](da82506)), closes [#102](#102)

### Features

* add `getCustomData` and `setCustomData` tracker API methods ([e76564c](e76564c))
* add optional _custom data_ parameter to event tracking ([0cdda40](0cdda40))
* add optional _custom data_ parameter to goal tracking ([6e21b91](6e21b91))
* add optional _custom data_ parameter to link tracking ([cfb42b1](cfb42b1))
* add optional _custom data_ parameter to site search tracking ([fa35f1c](fa35f1c)), closes [#96](#96)
* allow providing Matomo in lazy-loaded components/modules ([#98](#98)) ([45a5a0e](45a5a0e))
@EmmanuelRoux
Copy link
Owner

🎉 This PR is included in version 6.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@viceice
Copy link
Contributor

viceice commented Jan 8, 2025

Testing docs need to be updated so you need to use provideMatomo or MatomoModule to properly configure TestBed

EmmanuelRoux added a commit that referenced this pull request Jan 14, 2025
EmmanuelRoux added a commit that referenced this pull request Jan 14, 2025
## [6.4.1](v6.4.0...v6.4.1) (2025-01-14)

### Reverts

* feat: allow providing Matomo in lazy-loaded components/modules ([#98](#98)) ([3c20676](3c20676))
* fix: correctly resolve deferred configuration when using `manual` initialization mode ([a2ca6c4](a2ca6c4))
EmmanuelRoux added a commit that referenced this pull request Jan 14, 2025
# [7.0.0](v6.4.1...v7.0.0) (2025-01-14)

### Bug Fixes

* correctly inject legacy `MatomoRouterModule` and `NgxMatomoRouterModule` ([c2f7fda](c2f7fda)), closes [#105](#105) [#104](#104)
* correctly resolve deferred configuration when using `manual` initialization mode ([f0bb6c1](f0bb6c1)), closes [#102](#102)
* prepare testing api update ([0471e41](0471e41))

### Features

* add compatibility with Angular 19 (#101) ([bfae2b7](bfae2b7)), closes [#99](#99) [#103](#103)
* add new `withPageUrlProvider` feature and allow functional-style provider ([3d002d8](3d002d8))
* allow providing Matomo in lazy-loaded components/modules (#98) ([2982fc4](2982fc4)), closes [#97](#97)
* allow providing page url as promise ([5bb76a4](5bb76a4))

### Breaking changes

* Angular v19 is now required as peer dependency
* Some of your tests may be broken, you may need to provide Matomo in `TestBed` using `provideMatomoTesting()`.

### Deprecations

* `MatomoTestingTracker.setMatomoInstance` has been deprecated, provide a `MATOMO_TESTING_INSTANCE` DI token instead
@EmmanuelRoux
Copy link
Owner

@viceice Version 6.4.0 has been reverted in 6.4.1 (and is now deprecated)

This PR is now included in version 7.0.0 and has breaking changes.

For testing, provideMatomoTesting() can be used in TestBed providers.

@viceice
Copy link
Contributor

viceice commented Jan 16, 2025

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lazyload forRoot
3 participants