[PR #173] [MERGED] Dual CommonJS and ESM modules distributions #147

Closed
opened 2026-05-23 08:31:54 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase/pull/173
Author: @appy-one
Created: 11/7/2022
Status: Merged
Merged: 11/7/2022
Merged by: @appy-one

Base: masterHead: feature/dual-cjs-esm-dist


📝 Commits (10+)

📊 Changes

852 files changed (+25255 additions, -814 deletions)

View changed files

📝 README.md (+12 -1)
create-package-files (+47 -0)
📝 dist/browser.js (+166 -63)
📝 dist/browser.min.js (+1 -1)
📝 dist/cjs/acebase-browser.js (+0 -0)
dist/cjs/acebase-browser.js.map (+1 -0)
📝 dist/cjs/acebase-local.js (+0 -0)
dist/cjs/acebase-local.js.map (+1 -0)
📝 dist/cjs/api-local.js (+3 -2)
dist/cjs/api-local.js.map (+1 -0)
📝 dist/cjs/async-task-batch.js (+0 -0)
dist/cjs/async-task-batch.js.map (+1 -0)
📝 dist/cjs/binary.js (+0 -0)
dist/cjs/binary.js.map (+1 -0)
📝 dist/cjs/browser.js (+0 -0)
dist/cjs/browser.js.map (+1 -0)
📝 dist/cjs/btree/binary-pointer.js (+1 -1)
dist/cjs/btree/binary-pointer.js.map (+1 -0)
📝 dist/cjs/btree/binary-reader.js (+0 -0)
dist/cjs/btree/binary-reader.js.map (+1 -0)

...and 80 more files

📄 Description

This compiles the typescript sources to both CommonJS and ESM modules.

const { AceBase } = require('acebase') exports the CommonJS modules
import { AceBase } from 'acebase' exports the ESM modules


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/appy-one/acebase/pull/173 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 11/7/2022 **Status:** ✅ Merged **Merged:** 11/7/2022 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `feature/dual-cjs-esm-dist` --- ### 📝 Commits (10+) - [`66b5979`](https://github.com/appy-one/acebase/commit/66b5979d515b9f48c582144b9b3203a68c133cf3) Moved generated files to dist, ts to src - [`0be84fe`](https://github.com/appy-one/acebase/commit/0be84feed790538e7c2c3820a92a99329ac02c53) moved types & maps into own dir - [`bd947df`](https://github.com/appy-one/acebase/commit/bd947df72c6825a9584a73766289644abce872b6) update build settings & paths - [`8ec49a0`](https://github.com/appy-one/acebase/commit/8ec49a077c0b7be2c48013e95ab59576c973d104) chore: build - [`898ff05`](https://github.com/appy-one/acebase/commit/898ff05d6439281c6990620799054939775a668a) type improvements - [`07cb6cd`](https://github.com/appy-one/acebase/commit/07cb6cded5266a7ba33052891554352c5eb82d6f) commonjs and esm distributions - [`8537d1f`](https://github.com/appy-one/acebase/commit/8537d1fabb3d87f840d2fc2eca71a3966b1d6f6f) remove old types - [`0796ecf`](https://github.com/appy-one/acebase/commit/0796ecf2cc34d0d95f3743c994b62a66821f32c8) change import paths to dist - [`8b884eb`](https://github.com/appy-one/acebase/commit/8b884eb7c067fc1542ebcfe1112c3991f3c010d1) chore: build - [`1b1e239`](https://github.com/appy-one/acebase/commit/1b1e2398708a532d11a8f01b9caa0bf8c89fa7be) export throwing browser classes ### 📊 Changes **852 files changed** (+25255 additions, -814 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+12 -1) ➕ `create-package-files` (+47 -0) 📝 `dist/browser.js` (+166 -63) 📝 `dist/browser.min.js` (+1 -1) 📝 `dist/cjs/acebase-browser.js` (+0 -0) ➕ `dist/cjs/acebase-browser.js.map` (+1 -0) 📝 `dist/cjs/acebase-local.js` (+0 -0) ➕ `dist/cjs/acebase-local.js.map` (+1 -0) 📝 `dist/cjs/api-local.js` (+3 -2) ➕ `dist/cjs/api-local.js.map` (+1 -0) 📝 `dist/cjs/async-task-batch.js` (+0 -0) ➕ `dist/cjs/async-task-batch.js.map` (+1 -0) 📝 `dist/cjs/binary.js` (+0 -0) ➕ `dist/cjs/binary.js.map` (+1 -0) 📝 `dist/cjs/browser.js` (+0 -0) ➕ `dist/cjs/browser.js.map` (+1 -0) 📝 `dist/cjs/btree/binary-pointer.js` (+1 -1) ➕ `dist/cjs/btree/binary-pointer.js.map` (+1 -0) 📝 `dist/cjs/btree/binary-reader.js` (+0 -0) ➕ `dist/cjs/btree/binary-reader.js.map` (+1 -0) _...and 80 more files_ </details> ### 📄 Description This compiles the typescript sources to both CommonJS and ESM modules. `const { AceBase } = require('acebase')` exports the CommonJS modules `import { AceBase } from 'acebase'` exports the ESM modules --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-23 08:31:54 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#147
No description provided.