owja / ioc

:unicorn: lightweight (<1kb) inversion of control javascript library for dependency injection written in typescript
MIT License
287 stars 13 forks source link

(feat) restaure backwards compatibility with previous syntax #62

Closed vic1707 closed 2 years ago

vic1707 commented 2 years ago

with these commits the backwards compatibility is restaured (only one tag with old syntax)

Build "@owja/ioc" to dist:
        928 B: ioc.js.gz    (+ 8 B | +0.87%)
        791 B: ioc.js.br    (+ 5 B | +0.64%)
        933 B: ioc.mjs.gz   (+ 5 B | +0.54%)
        808 B: ioc.mjs.br   (+ 4 B | +0.50%)

The new utils.ts is here to reduce as much as possible the build size, without it I was at :

Build "@owja/ioc" to dist:
        941 B: ioc.js.gz    (+21 B | +2.28%)
        809 B: ioc.js.br    (+23 B | +2.93%)
        951 B: ioc.mjs.gz   (+23 B | +2.48%)
        832 B: ioc.mjs.br   (+28 B | +3.48%)
vic1707 commented 2 years ago

just saw #60 so I added some documentation to the README