Commit Graph

20 Commits

Author SHA1 Message Date
Justin Hernandez
5305ef83fc Feat: Improved import export sorting for app and common (#833)
* save import sorting work

* remove dupe headers and fix type errors

* sort imports and exports

* fix errors from export sorting

* fix tests

* codex feedback

* fix exports

* fix exports and tweak test build

* fix export and format

* fix license headers

* fix app building and clean up test errors

* fix android local e2e test

* improve caching

* final fixes

* remove invalid option

* fix sorting and get random values loading

* fix import sorting
2025-08-06 15:18:42 -07:00
Justin Hernandez
82d26669bc Enable tree-shakeable exports (#823)
* Add tree-shakeable exports

* Migrate imports for tree-shakeable paths

* Document ESM extension requirement

* udpates

* install new lock

* yarn nice

* build deps

* save working index export no wildcard approach

* save wip

* fix building

* add tree shaking doc and examples

* sort package json files

* update package.json

* fix analyzing web

* make sure that web is built

* wip tree shaking

* building works again. save wip logic

* use granular imports

* wip test

* save wip

* Remove hardcoded .d.ts files and setup automatic TypeScript declaration generation

- Remove redundant constants.d.ts, types.d.ts, utils.d.ts files
- Add build:types script to automatically generate TypeScript declarations
- Update tsup config to disable DTS generation (handled separately)
- Update .gitignore to prevent future commits of generated .d.ts files
- Fixes import resolution errors in app by ensuring declarations are always generated

* Add .gitignore rules for generated TypeScript declarations

* ignore dts files

* Remove redundant index.js re-export files

- Remove constants.js, types.js, utils.js as they're redundant with tsup build
- These were just re-exports pointing to dist files that tsup generates
- package.json exports already point directly to built files
- Update .gitignore to prevent future commits of these generated files
- tsup handles all the building, no manual re-export files needed

* save current wip fixes

* add tsup config for web building

* common prettier and fix imports

* prettier

* fix tests

* implement level 3 tree shaking

* improve splitting

* optimize vite web building and prettier

* remove comments

* sort export params

* feedback and fix pipelines

* fix circuit-names path

* fix test

* fix building

* sort

* fix building

* allow cursor to edit scripts

* fix loadDocumentCatalog undefined

* fix build settings

* fix build settings

* additional metro tree shaking

* improved discovery script for xcode building

* pr feedback and fix camelCasing

* simplify shim setup

* fix xcode building and add command to test building

* remove comment

* simplify
2025-08-02 16:55:05 -07:00
Aaron DeRuvo
0e9c59c0fb SEL-56: Setup Yarn Workspaces (#584) 2025-06-04 11:37:32 +02:00
motemotech
3a43dc372a fix common test 2024-12-03 00:23:35 +09:00
0xturboblitz
4bc2afcfa7 remove signatureAlgorithm and pubKey from PassportData 2024-09-14 13:11:58 +09:00
0xturboblitz
8522682f2a refactor mockPassportData generation
- Now using only genMockPassportData.ts
- Tests in `/common` verify them
- Mock DSCs for ecdsa
- Factor tests into unique files
- Broke register ecdsa sig verif, will fix
2024-09-14 01:29:04 +09:00
0xturboblitz
8a813c577d use mock DSC for sha256-ecdsa, pubkey now optional on PassportData 2024-08-29 12:29:39 +09:00
0xturboblitz
d47fb632d0 import same sampleDataHashes everywhere 2024-08-29 12:14:57 +09:00
0xturboblitz
9127e41d84 delete empty script 2024-08-29 12:09:49 +09:00
turnoffthiscomputer
c3fc800c30 refactor revealBitmap and change genMockPassportData path 2024-08-27 13:57:08 +02:00
turnoffthiscomputer
0ba5933c94 refactor app code, dscSecret gen and mockpassport gen 2024-08-27 11:49:26 +02:00
turnoffthiscomputer
7d8e9d84d4 fix mock data inputs 2024-08-26 16:31:58 +02:00
turnoffthiscomputer
8f2df219bd add mock passport data generator 2024-08-26 15:45:19 +02:00
0xturboblitz
3c3763c7a5 pushing mock passport data found in spain with sha1 hashing mrz and sha2 afterwards 2024-08-02 13:30:26 -07:00
0xvikasrushi
1600876b92 feat: sha512 mock script 2024-07-30 18:35:38 +00:00
0xvikasrushi
452750dc96 feat: sha256 mock script 2024-07-30 18:35:25 +00:00
0xvikasrushi
85b4f3a9c5 fix: signature fail in gen inputs 2024-07-28 08:29:21 +00:00
0xvikasrushi
d359122984 feat: mock data sha1_ecdsa p256 2024-07-16 23:27:15 +05:30
turnoffthiscomputer
464f6d21ce refactor circuits repo, clean circuits tests, implement new certificates scripts, fix all tests from circuits repo 2024-07-14 15:44:55 +02:00
turnoffthiscomputer
f99adb356b refactor circuits repo, add sha1 and rsapss dsc verification in circuits 2024-07-14 00:04:53 +02:00