Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Change how we re-exports `@svizzle/utils` to enable its autocompletion
  • Loading branch information
mindrones committed Sep 9, 2024
1 parent 00a1a38 commit ae96319
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ _/
**/*.todo.js
coverage/
node_modules/

# Mac
.DS_Store
10 changes: 10 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# RELEASE

## 20240909

- [`@datakit/[email protected]`](./packages/tx/CHANGELOG.md)

## 20240828

- [`@datakit/[email protected]`](./packages/eslint/CHANGELOG.md)
- [`@datakit/[email protected]`](./packages/tx/CHANGELOG.md)
4 changes: 4 additions & 0 deletions packages/tx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @datakit/tx

## v0.1.1

- Change how we re-exports `@svizzle/utils` to enable its autocompletion

## v0.1.0

- Re-exports all functions from `@svizzle/[email protected]`
Expand Down
4 changes: 3 additions & 1 deletion packages/tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"files": [
"src/**/*.js",
"!src/**/*.test.js",
"!src/**/*.idea.js",
"!src/**/*.todo.js",
"CHANGELOG.md",
"README.md"
],
Expand All @@ -32,5 +34,5 @@
"url": "github:mindrones/datakit"
},
"type": "module",
"version": "0.1.0"
"version": "0.1.1"
}
88 changes: 84 additions & 4 deletions packages/tx/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,86 @@
export * from '@svizzle/utils';
// autocomplete seems to fail with:
// `export * from '@svizzle/utils';`
// `export * from '@svizzle/utils/src/index.js';`
export * from '@svizzle/utils/src/modules/[any-any]-[any-boolean].js';
export * from '@svizzle/utils/src/modules/[any-any]-[array-boolean].js';
export * from '@svizzle/utils/src/modules/[any-any]-[iterable-object].js';
export * from '@svizzle/utils/src/modules/[any-any]-[object-array].js';
export * from '@svizzle/utils/src/modules/[any-any]-[object-boolean].js';
export * from '@svizzle/utils/src/modules/[any-any]-[object-number].js';
export * from '@svizzle/utils/src/modules/[any-any]-[object-object].js';
export * from '@svizzle/utils/src/modules/[any-array]-[any-array].js';
export * from '@svizzle/utils/src/modules/[any-array]-[array-object].js';
export * from '@svizzle/utils/src/modules/[any-boolean]-[array-array].js';
export * from '@svizzle/utils/src/modules/[any-boolean]-[object-any].js';
export * from '@svizzle/utils/src/modules/[any-number]-[array-number].js';
export * from '@svizzle/utils/src/modules/[any-object]-[array-object].js';
export * from '@svizzle/utils/src/modules/[string-boolean]-[object-boolean].js';
export * from '@svizzle/utils/src/modules/[string-boolean]-[object-object].js';
export * from '@svizzle/utils/src/modules/[string-string]-[object-object].js';
export * from '@svizzle/utils/src/modules/any-[any-boolean].js';
export * from '@svizzle/utils/src/modules/any-[array-object].js';
export * from '@svizzle/utils/src/modules/any-[object-boolean].js';
export * from '@svizzle/utils/src/modules/any-any.js';
export * from '@svizzle/utils/src/modules/any-boolean.js';
export * from '@svizzle/utils/src/modules/any-string.js';
export * from '@svizzle/utils/src/modules/any-undefined.js';
export * from '@svizzle/utils/src/modules/array_proto-array.js';
export * from '@svizzle/utils/src/modules/array_proto-boolean.js';
export * from '@svizzle/utils/src/modules/array_proto-string.js';
export * from '@svizzle/utils/src/modules/array-[any-any].js';
export * from '@svizzle/utils/src/modules/array-[any-boolean].js';
export * from '@svizzle/utils/src/modules/array-[any-object].js';
export * from '@svizzle/utils/src/modules/array-[array-array].js';
export * from '@svizzle/utils/src/modules/array-[array-object].js';
export * from '@svizzle/utils/src/modules/array-[number-boolean].js';
export * from '@svizzle/utils/src/modules/array-[number-number].js';
export * from '@svizzle/utils/src/modules/array-[object-array].js';
export * from '@svizzle/utils/src/modules/array-[object-boolean].js';
export * from '@svizzle/utils/src/modules/array-[object-object].js';
export * from '@svizzle/utils/src/modules/array-[string-boolean].js';
export * from '@svizzle/utils/src/modules/array-[string-string].js';
export * from '@svizzle/utils/src/modules/array-array.js';
export * from '@svizzle/utils/src/modules/array-boolean.js';
export * from '@svizzle/utils/src/modules/array-iterable.js';
export * from '@svizzle/utils/src/modules/array-number.js';
export * from '@svizzle/utils/src/modules/array-object.js';
export * from '@svizzle/utils/src/modules/array-string.js';
export * from '@svizzle/utils/src/modules/buffer-any.js';
export * from '@svizzle/utils/src/modules/constructor-[reduceCb[any-any]-[array-any]].js';
export * from '@svizzle/utils/src/modules/iterable-boolean.js';
export * from '@svizzle/utils/src/modules/iterable-number.js';
export * from '@svizzle/utils/src/modules/iterable-object.js';
export * from '@svizzle/utils/src/modules/number-[number-number].js';
export * from '@svizzle/utils/src/modules/number-boolean.js';
export * from '@svizzle/utils/src/modules/object-[any-object].js';
export * from '@svizzle/utils/src/modules/object-[object-object].js';
export * from '@svizzle/utils/src/modules/object-[string-boolean].js';
export * from '@svizzle/utils/src/modules/object-any.js';
export * from '@svizzle/utils/src/modules/object-array.js';
export * from '@svizzle/utils/src/modules/object-boolean.js';
export * from '@svizzle/utils/src/modules/object-number.js';
export * from '@svizzle/utils/src/modules/object-object.js';
export * from '@svizzle/utils/src/modules/reduceCb[any-any]-[array-any].js';
export * from '@svizzle/utils/src/modules/regexp-boolean.js';
export * from '@svizzle/utils/src/modules/string_proto-array.js';
export * from '@svizzle/utils/src/modules/string_proto-boolean.js';
export * from '@svizzle/utils/src/modules/string_proto-string.js';
export * from '@svizzle/utils/src/modules/string-[array-array].js';
export * from '@svizzle/utils/src/modules/string-[array-number].js';
export * from '@svizzle/utils/src/modules/string-[object-number].js';
export * from '@svizzle/utils/src/modules/string-[string-array].js';
export * from '@svizzle/utils/src/modules/string-[string-boolean].js';
export * from '@svizzle/utils/src/modules/string-[string-regexp].js';
export * from '@svizzle/utils/src/modules/string-[string-string].js';
export * from '@svizzle/utils/src/modules/string-any.js';
export * from '@svizzle/utils/src/modules/string-array.js';
export * from '@svizzle/utils/src/modules/string-boolean.js';
export * from '@svizzle/utils/src/modules/string-number.js';
export * from '@svizzle/utils/src/modules/string-regexp.js';
export * from '@svizzle/utils/src/modules/string-string.js';

export {default as areEquals} from 'just-compare';

export * from './array-any.js';
export * from './array-number.js';
export * from './array-string.js';
export * from './src/array-any.js';
export * from './src/array-number.js';
export * from './src/array-string.js';

0 comments on commit ae96319

Please sign in to comment.