Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b0bcf07
chore: update tsconfig.json
zcstarr Sep 17, 2025
072313a
chore: initial version package bumps
zcstarr Sep 18, 2025
f5d47f2
fix: add support for separate browser and node build configuration
zcstarr Sep 18, 2025
ddc141f
chore: reconfig jest to support esm format
zcstarr Sep 18, 2025
2203bdf
chore: retype errors for typescript
zcstarr Sep 18, 2025
d2f5e0e
chore: add nodejs types
zcstarr Sep 18, 2025
89f9518
chore: explicitly return undefined for resolve
zcstarr Sep 18, 2025
bd7b2e5
chore: remove async and abstract no longer allowed in ts 5.xx
zcstarr Sep 18, 2025
86881bb
chore: explicitly return undefined
zcstarr Sep 18, 2025
b135d02
fix: message type to be properly typed
zcstarr Sep 25, 2025
0e0a1fe
fix: refactor to support native fetch
zcstarr Sep 25, 2025
5718eda
fix: add support for tsconfig.json to support ambient jest types
zcstarr Sep 25, 2025
b22fe17
fix: update typedoc.json to work for the modern framework
zcstarr Sep 25, 2025
577f1e3
chore: update .gitignore filter out new math
zcstarr Sep 25, 2025
cabe832
chore: rm dead code
zcstarr Sep 25, 2025
56ebdde
fix: test to return proper types and poor async usage
zcstarr Sep 25, 2025
d741013
chore: adjust exclusion list
zcstarr Sep 25, 2025
dde036a
chore: add jest tyeps
zcstarr Sep 25, 2025
bbcb4c7
chore: reconfig eslint to ignore and grab the proper types
zcstarr Sep 25, 2025
12c98d0
chore: reconfig tsconfig to just support node/browser/dom packages fo…
zcstarr Sep 25, 2025
ac8a1b8
chore: lint
zcstarr Sep 25, 2025
eaeb70f
chore: refactor PostMessageIframe to use async/await directly
zcstarr Sep 25, 2025
547298b
chore: refactor connect to properly return promises
zcstarr Sep 25, 2025
383e307
fix: refactor object to not use hasOwnProperty from same object
zcstarr Sep 25, 2025
c530db7
chore: lint
zcstarr Sep 25, 2025
d3a616a
chore: add coverage test for no crash on subscribe/unsubscribe
zcstarr Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build
.DS_Store
node_modules
coverage
dist
12 changes: 12 additions & 0 deletions .prettierc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"endOfLine": "lf",
"bracketSameLine": false,
"arrowParens": "always",
"bracketSpacing": true,
"useTabs": false,
"tabWidth": 2,
"printWidth": 100,
"trailingComma": "es5",
"singleQuote": true,
"semi": true
}
92 changes: 92 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import eslint from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import prettierConfig from 'eslint-config-prettier';
import prettierPlugin from 'eslint-plugin-prettier';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
import globals from "globals";


const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export default [
eslint.configs.recommended,
// Add ignores as a separate config object
{
ignores: [
"package.json",
"node_modules/",
"**/dist/",
"dist/",
"docs/", // This will now work
"build/",
"coverage/",
"*.config.js",
"**/*.config.ts",
"vitest.config.ts",
"vite.config.ts"
]
},
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
ecmaVersion: 2022,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
globals: {
...globals.browser,
...globals.node,
...globals.es6,
chrome: 'readonly',
browser: 'readonly'
}
},
plugins: {
'@typescript-eslint': tseslint,
'prettier': prettierPlugin
},
rules: {
...tseslint.configs['recommended'].rules,
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-console': ['warn', { allow: ['warn', 'error'] }],
'prettier/prettier': 'error'
},
settings: { }
},
// Jest test files configuration
{
files: ['**/*.test.{ts,tsx}', '**/*.spec.{ts,tsx}'],
languageOptions: {
globals: {
...globals.jest,
...globals.browser,
...globals.node,
...globals.es6,
window: 'readonly',
document: 'readonly',
navigator: 'readonly',
console: 'readonly',
localStorage: 'readonly',
sessionStorage: 'readonly',
fetch: 'readonly',
FormData: 'readonly',
URLSearchParams: 'readonly',
chrome: 'readonly',
browser: 'readonly'
}
}
},
prettierConfig
];
2 changes: 1 addition & 1 deletion jest.config.js → jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default{
"clearMocks": true,
"coverageDirectory": "../coverage",
// `resetMocks` resets reusable spies from __mocks__ to no-op implementation
Expand Down
Loading