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

Fixing compatability issues #19

Open
wants to merge 6 commits into
base: latest
Choose a base branch
from

Conversation

adamhouten
Copy link

@adamhouten adamhouten commented Jan 24, 2023

Resolves #NUMBER

Overall change: Fixed a compatability issue and pulled some code from a barely maintained package

Code changes:

  • Removed the pre-install scripts that were blocking an install if the incorrect yarn/node versions were being used - this script was being ran when installing the package as a dependency, preventing it from being installed unless the exact yarn/node versions were being used
  • Removed the react-adaptive-hooks package and replaced the relevant functions into the codebase - this package is causing peer dependency issues when @bbc/web-vitals is installed in a codebase using React 17 with npm. The last time the package had a published version was 3 years ago and the functions are relatively simple, so it made sense in this case to lift them wholesale (they are covered under the same open licence as this package)

  • (BBC contributors only) This PR follows the repository use guidelines
  • [] I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

@adamhouten adamhouten marked this pull request as ready for review January 25, 2023 08:17
eagerterrier added a commit that referenced this pull request Jul 14, 2023
Mostly taken from #19
@eagerterrier
Copy link
Collaborator

hey adam

Going to try and push all these together as we have three PRs all related

#21

eagerterrier added a commit that referenced this pull request Oct 17, 2023
…library (#21)

* Delete the yarn error log

* Ignore yarn-error logs

* Fix readme

* Fix up readme

* Bump decode-uri-component from 0.2.0 to 0.2.2

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump json5 from 1.0.1 to 1.0.2

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump http-cache-semantics from 4.1.0 to 4.1.1

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* Simplify Contribution guide

* Remove references to psammead

* Update readme

* Simplify contribution guidelines

* Tidy up

* Fix import

* Tidy up unit test runner

* Update check package manager output

* Remove whitespace

* Simplify tests scripts

* Point to src folder

* Add babel core & babel cli in order to compile the web vitals library

* No need to ignore test.jsx files as none currently exist

* Run yarn build on prepublish to ensure that dist & esm packages are included in the packaged library

* Major upgrade since moving to new repo and lots of changes to make it work

* Reinstate tests for ci

* Ignore node_modules & built output when linting

* FIX: builds

* CHG: update web vitals

* CHG: ignore dist and esm

- these are created at postinstall time

* CHG: no slash needed

* Bump tough-cookie from 4.1.2 to 4.1.3

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](salesforce/tough-cookie@v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* ENH: adding debugging mode and different eventlistener

* FIX: Compatability issues

Mostly taken from #19

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: eagerterrier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants