Skip to content

Bump typescript and jest versions - #267

Merged
spalladino merged 4 commits into
masterfrom
palla/ts5
Apr 13, 2023
Merged

Bump typescript and jest versions#267
spalladino merged 4 commits into
masterfrom
palla/ts5

Conversation

@spalladino

@spalladino spalladino commented Apr 13, 2023

Copy link
Copy Markdown
Contributor

Bumps the versions of typescript and jest we're using.

Note that we keep the current module resolution strategy, so we don't break any consumers of our packages (eventually there'll be!) that are not going through a bundler. To mitigate the issue with the failing commonjs imports for memdown, we're now manually typing the return type of the createMemDown function and removing all ts-ignore annotations.

The more-correct way to do this though would've been to write a correct type declaration file for memdown using the export = MemDown syntax, but I failed to get the compiler to pick it up, and decided to time out on it.

Fixes #64

@spalladino
spalladino marked this pull request as ready for review April 13, 2023 19:02
@spalladino
spalladino requested a review from ludamad April 13, 2023 19:02
};

export const createMemDown = () => (memdown as any)();
export const createMemDown = () => (memdown as any)() as MemDown<any, any>;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could have

export const createMemDown = (): MemDown<any, any>  => (memdown as any)();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but coming from an any it doesn't make a difference

@ludamad ludamad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spalladino
spalladino merged commit 76929ae into master Apr 13, 2023
@spalladino
spalladino deleted the palla/ts5 branch April 13, 2023 19:59
Maddiaa0 pushed a commit that referenced this pull request Apr 14, 2023
* Remove ts-ignores when creating memdown instances

* Bump ts version

* Bump jest and friends versions

* Update snapshots
Maddiaa0 added a commit that referenced this pull request Apr 14, 2023
* Enabled multiple tests against same rollup contract

* fix: skip lower check on empty leaves

* fix: update nt insertion algo

* fix: redo nt algo

* temp

* Enabled multiple tests against same rollup contract

* fix: skip lower check on empty leaves

* fix: update nt insertion algo

* fix: redo nt algo

* clean

* clean

* chore(circuits): bump to fix pr

* chore(circuits(: bump using new dummy composer

* chore(circuits): bump to master

* chore: build in yarn test

* refactor: minor sequencer cleanup (#251)

* bump circuits

* add acirHash to PrivateCallData, bump circuits, fix primitives.wasm build/cmake, make sure circuits is built with USE_TURBO

* remove inherit from circuits.js package.json because it was removing timeout

* revert circuits.js/package.json update circuits submodule now that it uses USE_TURBO in dockerfiles

* fix: re-add timeout

* clean: update test syntax

* Bump typescript and jest versions (#267)

* Remove ts-ignores when creating memdown instances

* Bump ts version

* Bump jest and friends versions

* Update snapshots

* fix: bump circuits, USE_TURBO, acirHash, bump circuits.js timeout (#263)

* chore: build in yarn test

* bump to latest circuits master now that PR with contract root / address fix is merged

* add acirHash to PrivateCallData, bump circuits, fix primitives.wasm build/cmake, make sure circuits is built with USE_TURBO

* shouldn't need timeout...

---------

Co-authored-by: ludamad <domuradical@gmail.com>
Co-authored-by: cheethas <urmasurda@gmail.com>

* feat: Noir transfer function for milestone 1.5 (#244)

* fix: wip noir 1.5

* rand_idx hack to prevent repreated rand oracle removal

* fix: various fixes for noir 1.5

* fix: readded change note

* wip trying to fix transfer

* refactor(noir): refactored noir-aztec3

* chore: udpate bytecode of constructor and mint

* fix: work around bug by passing root as input

* refactor: remove debug stuffs

* feat: wip support for dummy notes

* fix(noir): worked around a weird transfer bug

* chore: switch to brillig oracles

* refactor(sim): recurse by creating nested classes

* refactor(noir): is_dummy and dummy notes creation

* chore(noir): update bytecode

* log: added a log in execution

* Revert "chore: switch to brillig oracles"

This reverts commit ea1d944.

---------

Co-authored-by: Joss <joss@aztecprotocol.com>

* fix: review comments

* revert: circuitsjs timeout

* fix: uncomment nullifier tree test

* Revert "Enabled multiple tests against same rollup contract"

This reverts commit 8ff5909.

* fix e2e block building test merge

* add private key to config

* improve e2e running times (#252)

* add config from env vars in projects + update e2e config

* remove comment

* Fix automatic import

* remove comments

* remove hardcoded addresses + reduce .isMined poll freq

* more chagnes to isMined freq

* fix zero EthAddress

* chore(circuits): bump

* chore(circuits): bump

* chore(circuits): back to master

* fix: up maxtxs per block

---------

Co-authored-by: PhilWindle <philip.windle@gmail.com>
Co-authored-by: cheethas <urmasurda@gmail.com>
Co-authored-by: ludamad <domuradical@gmail.com>
Co-authored-by: Jan Beneš <janbenes1234@gmail.com>
Co-authored-by: dbanks12 <david@aztecprotocol.com>
Co-authored-by: Santiago Palladino <santiago@aztecprotocol.com>
Co-authored-by: David Banks <47112877+dbanks12@users.noreply.github.com>
Co-authored-by: Álvaro Rodríguez <sirasistant@gmail.com>
Co-authored-by: Joss <joss@aztecprotocol.com>
Co-authored-by: spypsy <spypsy@outlook.com>
Co-authored-by: spypsy <spypsy@users.noreply.github.com>
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.

Move to TypeScript 5 and moduleResolution: bundler

2 participants