-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Documentation: * docs(ancestry-collection): fixed spacing * docs: fix jsdoc return types * docs(internal): commented exception classes * docs(query-builder): adjusted `when`'s grammar * docs: document `StaticToThis` type helper * docs(ancestry-collection): add flatten tip ## Fix: * fix(api-calls): include @ts-expect-error in declaration file * fix(api-calls): added missing `RequestMiddleware` type export * fix(relations): fix `morphTo` definition * fix(ancestry-collection): update constructor to be protected * Protected to discourage its usage from the outside. * fix(model-collection): improve argument of `findByKey` ## Performance: * perf(model): remove unnecessary `make` call ## Refactor: * refactor: rename FileModel to File * refactor: further File name changes ## Continuous Delivery: * ci: update testing node matrix * ci: fixed rollup config ## Style: * style(services): fixed too long line issue * style(relations): fixed too long line issue * style: fix eslint issues * style: fixed eslint issues ## Chore: * chore(deps-dev): updated dependencies * chore(deps-dev): update semantic-release * chore(deps-dev): updated packages * chore: increment version ## Testing: * test: update JSON parse error * test(helpers): improve variable name * test(relations): added missing test * test: add test for untested logic paths * test(ancestry-collection): fixed test name * test(services): fix json test for node 18
- Loading branch information
Showing
27 changed files
with
2,355 additions
and
11,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,102 @@ | ||
import typescript from "@rollup/plugin-typescript"; | ||
import pkg from './package.json'; | ||
import { terser } from "rollup-plugin-terser"; | ||
import bundleSize from 'rollup-plugin-bundle-size'; | ||
|
||
const banner = ` | ||
/*! ================================ | ||
${pkg.name} v${pkg.version} | ||
(c) 2020-present ${pkg.author} | ||
Released under ${pkg.license} License | ||
================================== */ | ||
`; | ||
|
||
/** | ||
* @type {import('rollup/dist/rollup').InputOptions} | ||
*/ | ||
const commonConfig = { | ||
external: [ | ||
...Object.keys(pkg.dependencies ?? {}), | ||
...Object.keys(pkg.optionalDependencies ?? {}), | ||
...Object.keys(pkg.peerDependencies ?? {}) | ||
], | ||
plugins: [ | ||
// it doesn't find the config by default and doesn't emit interface files | ||
// todo - https://github.com/rollup/plugins/pull/791/files#diff-77ceb76f06466d761730b952567396e6b5c292cc4044441cdfdf048b4614881dR83 check those tests | ||
typescript({ tsconfig: './tsconfig.json' }), | ||
terser({ | ||
format: { | ||
comments: (node, comment) => { | ||
if (comment.type === "comment2") { | ||
return /@upfront/.test(comment.value); | ||
} | ||
} | ||
} | ||
}), | ||
bundleSize() | ||
] | ||
}; | ||
|
||
/** | ||
* @type {import('rollup/dist/rollup').RollupOptions[]} | ||
*/ | ||
const rollupConfig = [ | ||
{ | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
file: pkg.main, | ||
format: 'cjs', | ||
sourcemap: true, | ||
banner | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
banner | ||
} | ||
], | ||
...commonConfig | ||
}, | ||
|
||
{ | ||
input: 'src/array.ts', | ||
output: [ | ||
{ | ||
file: 'array.min.js', | ||
format: 'cjs', | ||
sourcemap: true, | ||
banner | ||
}, | ||
{ | ||
file: 'array.es.min.js', | ||
format: 'es', | ||
sourcemap: true, | ||
banner | ||
} | ||
], | ||
...commonConfig | ||
}, | ||
|
||
{ | ||
input: 'src/string.ts', | ||
output: [ | ||
{ | ||
file: 'string.min.js', | ||
format: 'cjs', | ||
sourcemap: true, | ||
banner | ||
}, | ||
{ | ||
file: 'string.es.min.js', | ||
format: 'es', | ||
sourcemap: true, | ||
banner | ||
} | ||
], | ||
...commonConfig | ||
} | ||
]; | ||
|
||
export default rollupConfig; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import pkg from './package.json' assert { type: 'json' }; | ||
import terser from '@rollup/plugin-terser'; | ||
import bundleSize from 'rollup-plugin-bundle-size'; | ||
|
||
const banner = ` | ||
/*! ================================ | ||
${pkg.name} v${pkg.version} | ||
(c) 2020-present ${pkg.author} | ||
Released under ${pkg.license} License | ||
================================== */ | ||
`; | ||
|
||
/** | ||
* @type {import('rollup/dist/rollup').InputOptions} | ||
*/ | ||
const commonConfig = { | ||
external: [ | ||
...Object.keys(pkg.dependencies ?? {}), | ||
...Object.keys(pkg.optionalDependencies ?? {}), | ||
...Object.keys(pkg.peerDependencies ?? {}) | ||
], | ||
plugins: [ | ||
// it doesn't find the config by default and doesn't emit interface files | ||
// todo - https://github.com/rollup/plugins/pull/791/files#diff-77ceb76f06466d761730b952567396e6b5c292cc4044441cdfdf048b4614881dR83 check those tests | ||
typescript({ tsconfig: './tsconfig.json' }), | ||
terser({ | ||
format: { | ||
comments: (node, comment) => { | ||
if (comment.type === "comment2") { | ||
return /@upfront/.test(comment.value); | ||
} | ||
} | ||
} | ||
}), | ||
bundleSize() | ||
] | ||
}; | ||
|
||
/** | ||
* @type {import('rollup/dist/rollup').RollupOptions[]} | ||
*/ | ||
const rollupConfig = [ | ||
{ | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
file: pkg.main, | ||
format: 'cjs', | ||
sourcemap: true, | ||
banner | ||
}, | ||
{ | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
banner | ||
} | ||
], | ||
...commonConfig | ||
}, | ||
|
||
{ | ||
input: 'src/array.ts', | ||
output: [ | ||
{ | ||
file: 'array.min.js', | ||
format: 'cjs', | ||
sourcemap: true, | ||
banner | ||
}, | ||
{ | ||
file: 'array.es.min.js', | ||
format: 'es', | ||
sourcemap: true, | ||
banner | ||
} | ||
], | ||
...commonConfig | ||
}, | ||
|
||
{ | ||
input: 'src/string.ts', | ||
output: [ | ||
{ | ||
file: 'string.min.js', | ||
format: 'cjs', | ||
sourcemap: true, | ||
banner | ||
}, | ||
{ | ||
file: 'string.es.min.js', | ||
format: 'es', | ||
sourcemap: true, | ||
banner | ||
} | ||
], | ||
...commonConfig | ||
} | ||
]; | ||
|
||
export default rollupConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.