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

Feat/angular 13 - work in progress... #1006

Open
wants to merge 48 commits into
base: feat/use-angular-13
Choose a base branch
from

Conversation

johan--
Copy link

@johan-- johan-- commented Dec 12, 2023

Summary

Please note - this is a WIP commit/PR, some guidelines would be helpful to move forward. The aim is to upgrade to Angular 16/17, since the current release can not be used in Angular applications using v16 or better.

I've upgraded the e-commerce example and instantsearch to Angular 13.4.0, but there is a stumbling block.

The build for succeeds, but since ng-packagr 13.x no longer supports umdModuleId the following output is not being written to dist/bundles:

angular-instantsearch.umd.js
angular-instantsearch.umd.js.map
instantsearch.css
instantsearch.min.css
instantsearch-theme-algolia.css
instantsearch-theme-algolia.min.css

Result

➜ yarn examples:ecommerce
yarn run v1.22.19
$ ./scripts/run-example.sh e-commerce
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
success Already up-to-date.
$ ./scripts/build.sh
Building Angular Package
WARNING: Project is attempting to disable the Ivy compiler. Angular versions 13 and higher do not support View Engine compiler for libraries. The Ivy compiler will be used to build this project.
For additional information or if the build fails, please see https://v12.angular.io/guide/ivy


Building entry point 'angular-instantsearch'

✔ Compiling with Angular sources in Ivy partial compilation mode.
✔ Writing FESM bundles
✔ Copying assets
ℹ Removing scripts section in package.json as it's considered a potential security vulnerability.
ℹ Removing devDependencies section in package.json.
ℹ Removing jest section in package.json.
✔ Writing package manifest
✔ Built angular-instantsearch


Built Angular Package

  • from: /home/johan/projects/stratsmart/angular-instantsearch
  • to: /home/johan/projects/stratsmart/angular-instantsearch/dist

Build at: 2023-12-12T14:04:40.200Z - Time: 6411ms

cp: target 'dist/bundles' is not a directory
error Command failed with exit code 1.

Haroenv and others added 30 commits January 18, 2022 10:54
There seem to be no required changes for Angular 13 to build, as you can see in https://github.com/Haroenv/angular-instantsearch-angular-13

I did not update the build dependencies to Angular 13, as it required some more changes that we can do later, the current version is usable as-is in angular 5 (possibly only from 8) - 14

fixes algolia#885
Co-authored-by: Haroen Viaene <hello@haroen.me>
Co-authored-by: Haroen Viaene <hello@haroen.me>
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
…algolia#962)

* feat(search-box): add loading indicator and `showLoadingIndicator` prop to show/hide it

* feat(search-box): always show reset button when showLoadingIndicator is false
* chore: update `instantsearch.js`

* Update package.json

* update lockfile

* latest patch

* update again

Co-authored-by: Haroen Viaene <fingebimus@me.com>
Co-authored-by: Haroen Viaene <hello@haroen.me>
Co-authored-by: Haroen Viaene <hello@haroen.me>
* fix: use pages property of state in pagination.ts

* fix: forgot to add padding to connector options

* fix: padding default value is determined by connector

* fix: adjusted tests for the new pages property
Co-authored-by: Haroen Viaene <hello@haroen.me>
Co-authored-by: Kármán Zsombor <karman.zsombor@basecloud.hu>
Co-authored-by: Haroen Viaene <hello@haroen.me>
we aren't merging the PRs, so it's only noise
* chore: release v4.4.1

* edit changelog
@johan-- johan-- changed the base branch from master to feat/use-angular-13 December 12, 2023 14:07
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.

None yet

8 participants