Skip to content

Commit

Permalink
4.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopresto committed Aug 16, 2024
1 parent fd360f1 commit 6c425a5
Show file tree
Hide file tree
Showing 32 changed files with 376 additions and 496 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powership",
"version": "4.0.7",
"version": "4.0.10",
"private": true,
"scripts": {
"pack": "run-s pack:*",
Expand Down Expand Up @@ -34,6 +34,7 @@
"@types/shelljs": "0.8.11",
"@typescript-eslint/eslint-plugin": "4.15.2",
"@typescript-eslint/parser": "4.15.2",
"bun-safe": "1.0.7",
"bun-types": "1.0.26",
"conditional-type-checks": "1.0.6",
"eslint": "7.20.0",
Expand All @@ -48,15 +49,14 @@
"prettier": "2.4.0",
"prettier-plugin-multiline-arrays": "^1.1.3",
"rimraf": "3.0.2",
"runmate": "latest",
"semver": "7.5.2",
"shelljs": "0.8.5",
"ts-jest": "29.1.2",
"ts-node": "10.9.1",
"runmate": "latest",
"typedoc": "0.23.24",
"typedoc-plugin-markdown": "3.14.0",
"typescript": "4.8.2",
"bun-safe": "1.0.7",
"semver": "7.5.2",
"typedoc": "0.23.24",
"zx": "7.2.3"
},
"xworkspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/accounts",
"version": "4.0.7",
"version": "4.0.10",
"description": "Powership accounts",
"type": "module",
"main": "./out/index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/babel-plugins",
"version": "4.0.7",
"version": "4.0.10",
"main": "./out/index.js",
"sideEffects": false,
"typings": "./out/index.d.ts",
Expand Down
25 changes: 7 additions & 18 deletions packages/boilerplate/babel-config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ const browserConfig = {
useBuiltIns: 'entry',
corejs: '3.22',
targets: {
browsers: [
"last 1 versions",
"not dead",
"not < 50%"
]
browsers: ['last 1 versions', 'not dead', 'not < 50%'],
},
};

Expand All @@ -43,10 +39,6 @@ const envConfig = {
'module-browser': {
...browserConfig,
modules: false,
targets: {
...browserConfig.targets,
esmodules: true,
},
},

node: {
Expand All @@ -56,8 +48,11 @@ const envConfig = {
'module-node': {
...nodeConfig,
modules: false,
},

module: {
modules: false,
targets: {
...nodeConfig.targets,
esmodules: true,
},
},
Expand All @@ -66,10 +61,7 @@ const envConfig = {
module.exports = function (api) {
api.cache(true);

const presets = [
'@babel/preset-typescript', //
['@babel/preset-env', envConfig],
];
const presets = ['@babel/preset-typescript', ['@babel/preset-env', envConfig]];

const plugins = [
['babel-plugin-add-import-extension', { extension: destinationExtension, replace: true }],
Expand All @@ -94,9 +86,6 @@ module.exports = function (api) {
return {
presets,
plugins,
ignore: [
/node_modules/,
'**/__tests__', //
],
ignore: [/node_modules/, '**/__tests__'],
};
};
2 changes: 1 addition & 1 deletion packages/boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/boilerplate",
"version": "4.0.7",
"version": "4.0.10",
"author": "antoniopresto <[email protected]>",
"sideEffects": false,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powership/entity",
"version": "4.0.7",
"version": "4.0.10",
"type": "module",
"main": "./out/index.cjs",
"module": "./out/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/entity/setupTests.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { MongoMemoryServer } = require('mongodb-memory-server-core');
// const { MongoMemoryServer } = require('mongodb-memory-server-core');

process.env.LOG_LEVEL = '1';
process.env.NODE_ENV = 'test';
process.env.IS_LOCAL = 'true';

beforeAll(async () => {
// ensure mongo bins are downloaded
await MongoMemoryServer.create();
// await MongoMemoryServer.create();
});
3 changes: 1 addition & 2 deletions packages/entity/src/Entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
FinalFieldDefinition,
FinalObjectDefinition,
GraphType,
Internal,
isFieldTypeName,
ObjectDefinitionInput,
} from '@powership/schema';
Expand Down Expand Up @@ -762,7 +761,7 @@ function _registerPKSKHook(input: {

doc.ulid = (() => {
if (doc.ulid) return doc.ulid;
return Internal.create.ulid({ autoCreate: true }).parse(undefined);
return ulid();
})();

doc.createdAt = new Date();
Expand Down
Loading

0 comments on commit 6c425a5

Please sign in to comment.