1
0

4 Коммиты 2bd3457628 ... a76a1ce99f

Автор SHA1 Сообщение Дата
  Herby Vojčík a76a1ce99f 0.10.0 1 неделя назад
  Herby Vojčík 7f0e0b29e5 Require the siblings that share the ES2020 floor. 1 неделя назад
  Herby Vojčík d2a1aeda13 Declare Node 12 as the floor. 1 неделя назад
  Herby Vojčík 317b0cda66 Remove the es6-promise polyfill. 1 неделя назад
3 измененных файлов с 11 добавлено и 18 удалено
  1. 5 6
      Gruntfile.js
  2. 0 5
      es6-promise.amd.json
  3. 6 7
      package.json

+ 5 - 6
Gruntfile.js

@@ -29,9 +29,8 @@ module.exports = function (grunt) {
     grunt.registerTask('devel', ['amdconfig:app', 'requirejs:devel']);
     grunt.registerTask('deploy', ['amdconfig:app', 'requirejs:deploy']);
 
-    var polyfillThenPromiseApp = function () {
-        define(["require", "amber/es6-promise"], function (require, promiseLib) {
-            promiseLib.polyfill();
+    var promiseApp = function () {
+        define(["require"], function (require) {
             return new Promise(function (resolve, reject) {
                 require(["__app__"], resolve, reject);
             });
@@ -73,7 +72,7 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "app": '(' + polyfillThenPromiseApp + '());',
+                        "app": '(' + promiseApp + '());',
                         "__app__": 'define(["deploy", "amber/core/Platform-Browser"],function(x){return x});'
                     },
                     pragmas: {
@@ -90,7 +89,7 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "app": '(' + polyfillThenPromiseApp + '());',
+                        "app": '(' + promiseApp + '());',
                         "__app__": 'define(["devel", "amber/core/Platform-Browser"],function(x){return x});'
                     },
                     include: ['config', 'node_modules/requirejs/require', 'app', '__app__'],
@@ -110,7 +109,7 @@ module.exports = function (grunt) {
                                 });
                             });
                         } + "());",
-                        "app": "(" + polyfillThenPromiseApp + "());"
+                        "app": "(" + promiseApp + "());"
                     },
                     paths: {"amber_devkit": helpers.libPath},
                     pragmas: {

+ 0 - 5
es6-promise.amd.json

@@ -1,5 +0,0 @@
-{
-  "paths": {
-    "amber/es6-promise": ["./es6-promise", "./dist/es6-promise", "./promise"]
-  }
-}

+ 6 - 7
package.json

@@ -2,7 +2,7 @@
   "name": "@ambers/domite",
   "title": "Lite mite wrapping basic DOM for Amber Smalltalk",
   "description": "Lite mite wrapping basic DOM for Amber Smalltalk",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "homepage": "https://lolg.it/herby/domite",
   "author": {
     "name": "Herbert Vojčík",
@@ -22,7 +22,7 @@
     }
   ],
   "engines": {
-    "node": ">=4.0.0"
+    "node": ">=12.0.0"
   },
   "scripts": {
     "reset": "npm run clean && npm run init",
@@ -31,14 +31,13 @@
     "test": "grunt test"
   },
   "dependencies": {
-    "@ambers/lang": ">0.22.6"
+    "@ambers/lang": ">=0.31.0"
   },
   "devDependencies": {
-    "@ambers/contrib-legacy": ">=0.7.1",
-    "@ambers/helios": ">=0.10.0",
+    "@ambers/contrib-legacy": ">=0.11.0",
+    "@ambers/helios": ">=0.14.0",
     "@ambers/ide-starter-modal": "^0.2.0",
-    "@ambers/sdk": "^0.12.0",
-    "es6-promise": "^4.2.4",
+    "@ambers/sdk": "^0.13.0",
     "grunt": "^1.0.3",
     "grunt-contrib-clean": "^1.1.0",
     "grunt-contrib-requirejs": "^1.0.0",