maxgaurav / indexeddb-orm Goto Github PK
View Code? Open in Web Editor NEWIndexed DB ORM
Home Page: https://maxgaurav.github.io/indexeddb-orm
License: MIT License
Indexed DB ORM
Home Page: https://maxgaurav.github.io/indexeddb-orm
License: MIT License
Add a license file on project root.
choosealicense.com
Description
Migrate to using ESBuild for transpiling the library. I've already created a branch https://github.com/leovigna/indexeddb-orm/tree/version/4.0-esbuild and would like to know if you're interested in a PR to merge some of the changes.
ORM version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 4.x
I'm submitting a ... (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead use WordPress forums
Tell about your platform
Current behavior
Typescript is transpiled to js using tsc as an ESM Library. I suggest migrating over to esbuild to easily support various output formats:
This makes the library easily bundled in web projects regardless of whether they are ESM or CommonJS. Types are generated with tsc.
Expected behavior
ESBuild creates 4 outputs:
Steps to reproduce:
See the branch here and run npm build
.
https://github.com/leovigna/indexeddb-orm/tree/version/4.0-esbuild
Note I have also commented out the global idb overrides in index.ts
as it causes issues when looking to use indexed-db in NodeJS for testing purposes. (I use it alongside https://github.com/dumbmatter/fakeIndexedDB).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.