You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 KiB

rollup changelog

0.25.6

  • Fix a regression introduced by #566 (#569)
  • Prune dead conditional expressions more carefully (#567)

0.25.5

  • Make sure shorthand destructuring assignments don't break (#528)
  • Allow 'exports' key (#542)
  • Ensure foo. bar where foo is a namespace import is rewritten correctly (#566)
  • Fix an edge case for exported globals (e.g. export { document }) (#562)

0.25.4

  • Fix misnamed exports of default imports in ES bundles (#513)
  • CLI: warn on missing config (#515)
  • Detect side-effects in non-top-level member expression assignment (#476)
  • Don't remove computed property class keys (#504)
  • Augment existing global object rather than replacing (#493)
  • Don't fail on export {}, warn instead (#486)

0.25.3

  • Handle non-objects and null in _interopDefault (#474)

0.25.2

  • Skip dead branches of a conditional expression (#465)
  • Allow globals to be exported (#472)
  • Ensure reassigned exports are exported (#484)

0.25.1

  • Throw error if namespace is called (#446)
  • Prevent shadowing bug in ES6 output (#441)
  • Prevent var exports.foo (#426)
  • Prevent double export of aliased symbols (#438)
  • Provide more informative error if Rollup is used in-browser without appropriate resolveId/load hooks (#275)
  • Use _interopDefault function to DRY out code with many external dependencies, in CommonJS output (#458)

0.25.0

  • breaking Module order is determined according to spec, rather than in a way designed to prevent runtime errors. Rollup will warn if it detects runtime errors are likely (#435)
  • Prevent overly aggressive tree-shaking with complex call expressions (#440)

0.24.1

  • Handle calls to default exports other that are not function expressions or references to function declarations (#421)
  • Ensure namespace blocks are created for chained imports (#430)
  • Include references in computed property keys (#434)
  • Use CLI --external option correctly (#417)
  • Allow relative imports to be treated as external, if absolute paths are provided in options.external (#410)
  • Make IIFE output adhere to Crockford style (#415)

0.24.0

  • No longer attempts to resolve IDs in options.external (#407)
  • Fix broken sourcemap resolution in cases where some modules are transformed and others aren't (#404)

0.23.2

  • Ensure dest or sourceMapFile is resolved against CWD for purposes of sourcemap generation (#344)
  • Support banner, footer, intro and outro options via CLI (#330)
  • Allow options.global to be a function rather than an object, and warn on missing names (#293)
  • Ensure side-effects are captured in cyclical call expressions (#397)
  • Fix parse error with body-less arrow function expressions (#403)

0.23.1

  • Reinstate missing fix from (#392)

0.23.0

  • Add bundleTransform plugin hook and option (#387)
  • Correctly store names in sourcemaps, regardless of transformers
  • Add --environment option to CLI (#388)
  • Handle destructuring in exports (#374)
  • Fix UMD global exports bug introduced in 0.22.1 (#392)

0.22.2

  • Prevent lost var keywords (#390)

0.22.1

  • Update expected option keys (#379)
  • Handle transformers that return stringified sourcemaps (#377)
  • Automatically create missing namespaces if moduleName contains dots (#378)
  • Ignore external dependency warnings coming from config file (#333)
  • Update to latest magic-string for performance boost

0.22.0

  • Duplicate warnings are squelched (#362)
  • Plugins can manipulate or override the options object (#371)

0.21.3

  • Validate option keys (#348)
  • Allow namespaces imports to sit alongside named imports (#355)
  • Count references inside destructured objects (#364)
  • Preserve top-level delete statements (#352)

0.21.2

  • Missing relative imports are an error, not a warning (#321)
  • Fixed incorrectly renamed default exports in ES6 bundles (#339)
  • Fixed infinite recursion bug (#341)

0.21.1

  • Remove aggressive: true (was too aggressive) (#309)
  • Handle top-level block statements (#326)
  • Optimise namespaces with default exports (#314)

0.21.0

  • Only include statements whose side-effects are relevant (i.e. contribute to exports or affect global state) (#253) (#253)
  • Exclude dead branches from analysis and inclusion (#249)
  • Add aggressive: true option to eliminate all side-effects outside entry module
  • More informative error when re-exporting non-existent binding (#274)
  • Fix infinite recursion bug (#291)
  • Log errors when using rollup --config (#288)
  • Return rejected promises on startup instead of throwing error, if options are invalid (#303)

0.20.5

  • Ensure re-exports don't create a local binding (#270)

0.20.4

  • Check file exists at resolve time, to allow filenames with non-extension dots in them (#250)
  • Import Promise where used, for Node 0.10 support (#254)
  • Allow asynchronous transformer plugins (#260)
  • Don't assume re-exported bindings are globals when deconflicting (#267)

0.20.3

  • Fix bug where multiple export * declarations caused error (#244)
  • Missing namespace exports are a warning, not an error (#244)
  • Plugins can provide banner and footer options (string, or function that returns a string) (#235)
  • Warn on encountering eval (#186)

0.20.2

  • Handle errors in build config file
  • More robust deconflicting, in cases where e.g. foo$1 already exists
  • Use Rollup CLI for own build process

0.20.1

  • Support --config file to enable plugins with CLI (#226)
  • Prevent default being used as variable name (#215)
  • Update deps

0.20.0

  • Support for plugins (#207)
  • BREAKING – options.transform, options.load, options.resolveId, options.resolveExternal and options.external are no longer supported, and should be handled by plugins. More info
  • BREAKING – the .js extension is only added if it looks like there's no extension, allowing e.g. import data from 'data.json' (with the appropriate transformer). For safety, always include the file extension – import ./foo.js, not ./foo

0.19.2

  • Fix exporting namespaces to include all of their exports (#204)
  • Namespace exotic objects are frozen to ensure that its properties cannot be modified, reconfigured, redefined or deleted (#203)
  • Fix ReferenceError: Promise is not defined in node v0.10 (#189)

0.19.1

  • Fix module.basename() when used with custom resolveId function
  • Use rollup-babel to build self
  • Exposed the version string through the API: require( 'rollup' ).VERSION

0.19.0

  • breaking The transform option is no longer passed through to custom loaders. Loaders should only concern themselves with providing source code; transformation will always take place
  • options.transform functions can return a string, or a {code, map, ast} object. Where possible, sourcemap chains will be flattened (#175)
  • options.resolveId, options.resolveExternal and options.load can each be a function or an array of functions. If an array, the first non-null/undefined return value is used. In both cases, failed resolution/loading will fall back to the defaults, unless an error is thrown. (#174)
  • New intro and outro options – similar to banner and footer except inserted inside any format-specific wrapper
  • Multiple var declarations in an export block (e.g. export let a = 1, b = 2) are split up to facilitate tree-shaking (#171)
  • More informative error when using a missing namespace property (#169)
  • Update various dependencies

0.18.5

  • Allow namespaces to be assigned to variables (#168)
  • Promote chalk and source-map-support to dependencies, as they're used by the CLI (#167)

0.18.4

  • Make external modules configurable (i.e. external.config.foo = 'bar') without erroring

0.18.3

  • Crop indent exclusion ranges to exclude enclosing quotes (#166)

0.18.2

  • Include definitions of namespace members that are exported as defaults

0.18.1

  • Include acorn.parse in bundle, remove sander from dependencies, simplify build

0.18.0

  • Internal rewrite
  • Reinstate statically-analysable namespace imports
  • Avoid using getters in namespace blocks where possible (#144)
  • Track variable aliases (#96)
  • Prevent multiline strings being indented (#164)

0.17.4

  • Allow imports from hidden directories (replay of #133)

0.17.3

  • Handle parenthesised default exports (#136)

0.17.2

  • Allow use of scoped npm packages (#131)

0.17.1

  • Allow namespaces to be passed to a function (#149)

0.17.0

  • Roll back to 0.15.0 and reapply subsequent fixes pending resolution of (#132) and related issues

0.16.4

  • Fix import paths with . (#133)
  • Prevent sourceMappingURL confusion leading to broken sourcemap
  • Add code coverage reporting #130)
  • Add modules property to user-facing bundle – an array with {id} objects (#128)

0.16.3

  • Prevent adjacent blocks of multiple var declarations causing magic-string failure (#105)

0.16.2

  • Top-level function calls and assignments to globals are treated as side-effects, and always included
  • Import files from subdirectories of external packages, e.g. import mod from 'foo/sub/mod' (#126)

0.16.1

  • Handle assignment patterns, and destructured/rest parameters, when analysing scopes
  • Fix bug preventing project from self-building (make base Identifier class markable)

0.16.0

  • Internal refactoring (#99)
  • Optimisation for statically-analysable namespace imports (#99)
  • Windows support (theoretically!) (#117 / #119)

0.15.0

  • Load all modules specified by import statements, and do tree-shaking synchronously once loading is complete. This results in simpler and faster code, and enables future improvements (#97)
  • Only rewrite foo as exports.foo when it makes sense to (#92)
  • Fix bug with shadowed variables that are eventually exported (#91)
  • Exclude unused function declarations that happen to modify a used name (#90)
  • Simplify internal Scope model – scopes always attach to blocks, never function expressions/declarations

0.14.1

  • export { name } from './other' does not create a local binding (#16)
  • A single binding can be exported under multiple names (#18)
  • useStrict option exposed to CLI as --strict/--no-strict (#81)
  • Neater exports from ES6 bundles

0.14.0

  • Internal refactoring
  • Correctly deconflict generated default export names (#72)
  • Handle export { x } from 'y' declarations (#74)
  • Dedupe named imports from external modules in ES6 bundles (#77)

0.13.0

  • Support banner and footer options (#66)
  • Remove pre-existing sourcemap comments (#66)
  • Deconflict external imports (#66)
  • Use existing AST, if provided (#66)
  • Rename internal namespace exports as appropriate (#66)
  • Remove uninitialised var declarations that get exported (#66)
  • Rename variables named exports to avoid conflicts (#66)

0.12.1

  • Don't attempt to mark statements belonging to external modules (#68)
  • Correctly deshadow variables that conflict with imports (#68)

0.12.0

  • Internal re-architecting, resulting in more efficient bundling with reduced memory usage
  • Shorthand properties are expanded if necessary (#61)
  • Fixed various bugs with bundle external dependencies, particularly when generating ES6 bundles (#59)
  • Add --globals option to CLI (#60)
  • Allow imports of external modules for side-effects (#55)
  • Prevent Rollup hanging on non-existent external module (#54)

0.11.4

  • Side-effect preservation applies to internal default exports (#43)

0.11.3

  • Class methods are not incorrectly renamed (#42)
  • External modules are assigned names before canonical names are determined (#42)

0.11.2

  • Correctly handle computed properties (e.g. foo[bar]) when discovering dependencies (#47)

0.11.1

  • Support for export * from '..' (#46)

0.11.0

  • Experimental browser-friendly build (dist/rollup.browser.js) (#25)
  • Internal re-architecting to make discovery process simpler and more performant
  • Preservation of side-effects that happen in a separate module to the affected definition (#39)

0.10.0

  • Better sorting algorithm – sorting happens at the module level, rather than the statement level. This avoids certain edge cases
  • IIFEs are ignored for the purposes of distinguishing between 'strong' and 'weak' dependencies
  • Empty var declarations for exported bindings are omitted

0.9.1

  • Much faster statement insertion (fixes major 0.9.0 performance regression)

0.9.0

  • BREAKING - resolvePath is now resolveId. The returned id (which by default is a filepath) is passed to the load function, which can optionally be overridden, and which is applied to all modules including the entry module. This allows custom resolver and loading logic for integration with third party systems (e.g. JSPM) or, eventually, in-browser usage (#30)
  • A statement cannot appear after later statements from the same bundle (#34)
  • Tricky cyclical dependencies are handled (#36)
  • sourcemap option is used by CLI (was omitted previously)

0.8.3

  • Correctly rename functions that have arguments with the same name (#32)
  • Ensure unused default exports are given a legal name (#33)

0.8.2

  • Support moduleId and moduleName via CLI (#24)

0.8.1

  • Anonymous functions that are exported as default are converted to named function declarations for correct hoisting, rather than being bound to functions (#29)
  • Automatically-generated default export names are deconflicted with local definitions (#29)

0.8.0

  • Top-level variable declarations with multiple declarators are split up, to avoid unnecessary code importing and incorrectly-ordered statements (#26)
  • this at the top level is undefined (#28)

0.7.8

  • Avoid using path.parse - unsupported in node 0.10

0.7.7

  • Promise source-map-support from devDependencies to dependencies (#23)

0.7.6

  • Better placement of export default statements (#21)
  • Prevent function calls and property assignments from being treated as rebinding for sake of unbound default exports
  • Add --external foo,bar,baz option to CLI (equivalent to external: ['foo', 'bar', 'baz'])
  • Add CLI tests

0.7.5

  • Prevent accidental conflicts with the global namespace (#20)

0.7.4

  • More precise statement re-ordering to satisfy export default constraint (fixes bug introduced in 0.7.3)

0.7.3

  • Default exports are not bound. To enable this, statements within a module are sorted to retain their original order (#15)
  • Better positioning of comments (#14)
  • Various fixes to get Travis-CI rigged up

0.7.2

  • Fix sourcemap paths on Windows (#6)

0.7.1

  • Named functions can be used as default exports from a bundle
  • Method calls are assumed to mutate the owner (i.e. foo.bar() mutates foo) (#13)
  • options.indent can be used to control indentation of resulting bundle. options.true (default) means 'auto', options.false means empty string. Alternatively specify whitespace e.g. ' ' or '\t' (#5)

0.7.0

  • Ensure statements are always separated by a newline (#9)
  • Use CommonJS exports correctly (UMD exports)
  • Throw error if moduleName is required but missing (UMD exports)
  • Attach IIFE global to this rather than window
  • Allow names inside bundle to the the names of Object.prototype properties (#12)
  • Keep exports live (#11)

0.6.5

  • Add sourceMappingURL comment to code, as appropriate
  • Higher resolution sourcemaps

0.6.4

  • Fix CJS bundling with default export

0.6.3

  • Fix exports and external module imports with some output formats
  • Fix endless cycle bug on Windows (#3) - thanks @Bobris

0.6.2

  • Permit assignments to properties of imported bindings

0.6.1

  • Support for basic transformers

0.6.0

  • BREAKING - rollup.rollup and bundle.write both take a single options argument
  • BREAKING - external modules must be declared upfront with options.external: [...]
  • Non-relative module paths will be resolved by looking for jsnext:main fields in the appropriate package.json files. This behaviour can be overridden by passing an alternative resolveExternal function
  • Fix sourcemap options
  • Include CLI files in npm package (duh)

0.5.0

  • Command line interface
  • Sourcemap generation
  • Correct behaviour with export { x as y } from 'z'

0.4.1

  • More import name deconflicting

0.4.0

  • Self-hosting! rollup.rollup now rolls up rollup
  • Fix bug with comments inside a statement later being appended to it
  • Prevent shadowing of external modules
  • Rewrite computed property identifiers where necessary
  • Preserve original statement order where possible
  • Internal refactoring

0.3.1

  • Saner deconflicting
  • Rename namespace imports from external modules correctly

0.3.0

  • Basic functionality present, mostly spec-compliant

0.2.1

  • Include dist files in npm package (duh)

0.2.0

  • First release capable of doing anything useful
  • Still lots of basic functionality missing

0.1.0

  • Initial experiment