Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shuritch committed Nov 10, 2023
1 parent 63646f6 commit 90a75ec
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

## [Unreleased][unreleased]

<!--
## [1.0.0][] - 2023-11-00
## [1.0.0][] - 2023-11-10

- ES modules support & typescript support
- Release version
-->

## [0.9.0][] - 2023-11-00
## [0.9.0][] - 2023-11-09

- Pre-release fixes
- Documentation enhancements
Expand Down Expand Up @@ -116,8 +115,8 @@
- Default exotic types: Any, Undefined, JSON
- Custom Errors

[unreleased]: https://github.com/astrohelm/metaforge/compare/v0.8.0...HEAD
[1.0.0]: https://github.com/astrohelm/metaforge/compare/v1.0.0...v1.0.0
[unreleased]: https://github.com/astrohelm/metaforge/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/astrohelm/metaforge/compare/v0.9.0...v1.0.0
[0.9.0]: https://github.com/astrohelm/metaforge/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/astrohelm/metaforge/compare/v0.7.0...v0.8.0
[0.7.0]: https://github.com/astrohelm/metaforge/compare/v0.6.0...v0.7.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center">MetaForge v0.9.0 🕵️</h1>
<h1 align="center">MetaForge v1.0.0 🕵️</h1>

## Describe your data structures by subset of JavaScript and:

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const Forge = require('./lib/forge');
const createError = require('./lib/error');
Schema.modules = require('./modules');
module.exports = Schema;
module.exports.Schema = Schema;
module.exports.default = Schema;

const MODULE_ERROR = 'Module already exists: ';
function Schema(plan, options = {}) {
Expand Down
4 changes: 2 additions & 2 deletions lib/forge.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { utils } = require('astropack');
const { utils: astropack } = require('astropack');
const core = require('./proto');

module.exports = function Forge(schema, custom = {}) {
Expand Down Expand Up @@ -36,7 +36,7 @@ module.exports = function Forge(schema, custom = {}) {
};

function unifyProto(Proto) {
const type = utils.isFunction(Proto);
const type = astropack.isFunction(Proto);
if (type === 'function') return Proto;
return function Prototype(plan, tools) {
// eslint-disable-next-line new-cap
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"license": "MIT",
"version": "0.9.0",
"version": "1.0.0",
"type": "commonjs",
"name": "metaforge",
"homepage": "https://astrohelm.ru",
Expand Down Expand Up @@ -33,13 +33,13 @@
"engines": {
"node": ">= 18"
},
"browser": {},
"files": ["/lib", "/types"],
"files": ["/lib", "/types", "/dist"],
"scripts": {
"test": "node --test",
"dev": "node index.js",
"prettier:fix": "prettier --write \"**/*.{js,ts,json,html,cjs,md,yaml}\"",
"eslint:fix": "eslint --fix \"**/*.{js,ts}\""
"eslint:fix": "eslint --fix \"**/*.{js,ts}\"",
"build": "vite build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 90a75ec

Please sign in to comment.