Coder Social home page Coder Social logo

maxgaurav / indexeddb-orm Goto Github PK

View Code? Open in Web Editor NEW
57.0 9.0 12.0 704 KB

Indexed DB ORM

Home Page: https://maxgaurav.github.io/indexeddb-orm

License: MIT License

JavaScript 2.44% TypeScript 94.30% HTML 3.25%
indexeddb javascript-library javascript webworker orm query-builder promise database nested-attributes transaction

indexeddb-orm's People

Contributors

ankurk91 avatar maxgaurav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

indexeddb-orm's Issues

Add LICENSE

Add a license file on project root.
choosealicense.com

Migration to ESBuild

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

  • Operating System : Linux
  • Browser and version: NA

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:

  • ESM Library
  • CommonJS Library
  • ESM Bundle
  • CommonJS Bundle

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:

  • /lib/esm
  • /lib/cjs
  • /dist/esm
  • /dist/cjs

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.